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>
This commit is contained in:
Stephen Finucane 2021-02-01 11:06:42 +00:00
parent 3542beac23
commit 67a467585c

View File

@ -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