diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2021-02-01 09:57:55 +0000 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2021-02-01 11:15:59 +0000 |
commit | 57e9754093eec986b60d86e527e41c74b001b30a (patch) | |
tree | c78226619aa8c6564fc2c9435143e8fc4a1aec5c /heat/common/identifier.py | |
parent | 32f9014207d3a3fa1e248d372f9f1d59c876ee1c (diff) | |
download | heat-57e9754093eec986b60d86e527e41c74b001b30a.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
Change-Id: Ia282479bb1d466bd2189ebb21b51d91e89b9581e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'heat/common/identifier.py')
-rw-r--r-- | heat/common/identifier.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heat/common/identifier.py b/heat/common/identifier.py index 46323b25d..02628b478 100644 --- a/heat/common/identifier.py +++ b/heat/common/identifier.py @@ -20,7 +20,7 @@ from urllib import parse as urlparse from heat.common.i18n import _ -class HeatIdentifier(collections.Mapping): +class HeatIdentifier(collections.abc.Mapping): FIELDS = ( TENANT, STACK_NAME, STACK_ID, PATH |