diff options
author | Zuul <zuul@review.opendev.org> | 2021-08-31 23:02:48 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-08-31 23:02:48 +0000 |
commit | cf5f1e5651052be52f17beeb400ac433303a9602 (patch) | |
tree | ca329575d8f7750f1dac0c0d7583a16b35519aa7 | |
parent | f03ff806c157fb0cf14895db3b31294692f544fd (diff) | |
parent | d3044ad238e381c6a7346990354e76d1a8fed741 (diff) | |
download | keystone-cf5f1e5651052be52f17beeb400ac433303a9602.tar.gz |
Merge "Replace deprecated import of ABCs from collections"20.0.0.0rc120.0.0
-rw-r--r-- | keystone/common/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keystone/common/utils.py b/keystone/common/utils.py index 13140853a..7c3e7ae1a 100644 --- a/keystone/common/utils.py +++ b/keystone/common/utils.py @@ -16,7 +16,7 @@ # License for the specific language governing permissions and limitations # under the License. -import collections +import collections.abc import grp import hashlib import itertools @@ -81,7 +81,7 @@ def flatten_dict(d, parent_key=''): items = [] for k, v in d.items(): new_key = parent_key + '.' + k if parent_key else k - if isinstance(v, collections.MutableMapping): + if isinstance(v, collections.abc.MutableMapping): items.extend(list(flatten_dict(v, new_key).items())) else: items.append((new_key, v)) |