Skip to content

Commit

Permalink
Adding support for 3.8 abstract base classes
Browse files Browse the repository at this point in the history
  • Loading branch information
glowatsk committed Oct 7, 2019
1 parent 9f51c23 commit 69b462f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion txtorcon/controller.py
Expand Up @@ -11,8 +11,11 @@
import tempfile
import functools
from io import StringIO
from collections import Sequence
from os.path import dirname, exists
try:
from collections.abc import Sequence
except ImportError:
from collections import Sequence

from twisted.python import log
from twisted.python.failure import Failure
Expand Down
5 changes: 4 additions & 1 deletion txtorcon/torconfig.py
Expand Up @@ -10,8 +10,11 @@
import functools
import warnings
from io import StringIO
from collections import OrderedDict
from warnings import warn
try:
from collections.abc import OrderedDict
except ImportError:
from collections import OrderedDict

from twisted.python import log
from twisted.python.compat import nativeString
Expand Down

0 comments on commit 69b462f

Please sign in to comment.