diff options
author | Joel Capitao <jcapitao@redhat.com> | 2021-02-11 12:09:38 +0100 |
---|---|---|
committer | Joel Capitao <jcapitao@redhat.com> | 2021-02-11 12:29:00 +0100 |
commit | 8271ba8719db5bba6a1bb45cd7e2f6750ae5f56a (patch) | |
tree | 2327557ec6cc95fddb8303396dfbb76727bf3373 | |
parent | 5188cc77c5433219583379efc5488edf376d9fdf (diff) | |
download | python-troveclient-8271ba8719db5bba6a1bb45cd7e2f6750ae5f56a.tar.gz |
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
-rw-r--r-- | troveclient/compat/tests/test_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/troveclient/compat/tests/test_common.py b/troveclient/compat/tests/test_common.py index 5a4b5a1..1c89dfd 100644 --- a/troveclient/compat/tests/test_common.py +++ b/troveclient/compat/tests/test_common.py @@ -254,7 +254,7 @@ class CommandsBaseTest(testtools.TestCase): self.cmd_base.verbose = False - class MockIterable(collections.Iterable): + class MockIterable(collections.abc.Iterable): links = ["item"] count = 1 |