diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2021-02-01 11:06:42 +0000 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2021-02-01 11:06:42 +0000 |
commit | 67a467585c3597806552a550ff792acdee86be1d (patch) | |
tree | de2f379b3d47faa6623e121c5d3d1312cbc4e3fd | |
parent | 3542beac2307333340a7a92af442f669502d52be (diff) | |
download | oslo-context-67a467585c3597806552a550ff792acdee86be1d.tar.gz |
Drop use of deprecated collections classes
These were moved in Python 3.3 and the aliases will be dropped in 3.10.
Change-Id: I5b289c21f752e3135af86c4180feead8b997f61d
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
-rw-r--r-- | oslo_context/context.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_context/context.py b/oslo_context/context.py index 172d8ca..2102791 100644 --- a/oslo_context/context.py +++ b/oslo_context/context.py @@ -26,7 +26,7 @@ context or provide additional information in their specific WSGI pipeline or logging context. """ -import collections +import collections.abc import functools import itertools import threading @@ -79,7 +79,7 @@ def generate_request_id(): return 'req-%s' % uuid.uuid4() -class _DeprecatedPolicyValues(collections.MutableMapping): +class _DeprecatedPolicyValues(collections.abc.MutableMapping): """A Dictionary that manages current and deprecated policy values. Anything added to this dictionary after initial creation is considered a |