summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Nemec <bnemec@redhat.com>2021-01-29 15:52:31 +0000
committerBen Nemec <bnemec@redhat.com>2021-01-29 15:57:59 +0000
commit0d02866365bc8b779aef9ebd0b79a52c96ae40e5 (patch)
treede2f379b3d47faa6623e121c5d3d1312cbc4e3fd
parent3542beac2307333340a7a92af442f669502d52be (diff)
downloadoslo-context-0d02866365bc8b779aef9ebd0b79a52c96ae40e5.tar.gz
Switch to collections.abc.MutableMapping3.2.0
collections.MutableMapping has been deprecated since Python 3.3 and is removed in Python 3.10. The functionality should be identical. Change-Id: Ic9b2f8a89a92ac3a5fa5f49bb19f13e547d12eda
-rw-r--r--oslo_context/context.py4
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