Skip to content

Commit

Permalink
Merge pull request wireservice#737 from quantrocket-llc/collections-abc
Browse files Browse the repository at this point in the history
import Sequence from collections.abc to suppress warning in python 3.…
  • Loading branch information
jpmckinney authored Apr 1, 2020
2 parents b2d1ebb + 1ba2a8d commit 6152fea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion agate/mapped_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
rows and columns.
"""

from collections import OrderedDict, Sequence
from collections import OrderedDict
try:
from collections.abc import Sequence
except ImportError:
from collections import Sequence

import six
from six.moves import range # pylint: disable=W0622
Expand Down
6 changes: 5 additions & 1 deletion agate/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
agate.
"""

from collections import OrderedDict, Sequence
from collections import OrderedDict
try:
from collections.abc import Sequence
except ImportError:
from collections import Sequence
from functools import wraps
import math
import string
Expand Down

0 comments on commit 6152fea

Please sign in to comment.