♻️ Prefer collections.abc over collections import

This commit is contained in:
Gina Häußge committed 2020-11-02 10:20:52 +01:00
1 parent 60f14e1f99
commit 189d3bbbdf
1 file changed
+3 -3
+3 -3
View File
@@ -1675,10 +1675,10 @@ class CountedEvent(object):
class InvariantContainer(object):
def __init__(self, initial_data=None, guarantee_invariant=None):
try:
from collections import Iterable
except ImportError:
# Python >= 3.8
from collections.abc import Iterable
except ImportError:
# Python < 3.8
from collections import Iterable
from threading import RLock
if guarantee_invariant is None: