Skip to content

Commit 8271ba8

Browse files
committed
Switch to collections.abc.*
The abstract base classes previously defined in 'collections' were moved to 'collections.abc' in 3.3. The aliases will be removed in 3.10. Preempt this change now with a simple find-replace: $ ag -l 'collections.($TYPES)' | \ xargs sed -i 's/\(collections\)\.\($TYPES\)/\1.abc.\2/g' Where $TYPES is the list of moved ABCs from [1]. [1] https://docs.python.org/3/library/collections.abc.html Credit for this commit message to Stephen Finucane <stephenfin@redhat.com> Change-Id: I782f2449832398cf2cfb886f561635de3d8ac18d
1 parent 5188cc7 commit 8271ba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

troveclient/compat/tests/test_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def test__pretty_paged(self):
254254

255255
self.cmd_base.verbose = False
256256

257-
class MockIterable(collections.Iterable):
257+
class MockIterable(collections.abc.Iterable):
258258
links = ["item"]
259259
count = 1
260260

0 commit comments

Comments
 (0)