We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a441f3 + 7180316 commit 7519dbdCopy full SHA for 7519dbd
tgt/core.py
@@ -19,12 +19,15 @@
19
from __future__ import division
20
21
import bisect
22
-import collections
23
import warnings
24
import copy
25
import math
26
import operator
27
import re
+try:
28
+ from collections.abc import Sequence
29
+except ImportError:
30
+ from collections import Sequence
31
32
33
__all__ = [
@@ -57,7 +60,7 @@ def add_tier(self, tier):
57
60
58
61
def add_tiers(self, tiers):
59
62
'''Add a sequence of tiers.'''
- if isinstance(tiers, collections.Sequence):
63
+ if isinstance(tiers, Sequence):
64
for tier in tiers:
65
self.add_tier(tier)
66
else:
0 commit comments