fix depricated collections calls

This commit is contained in:
Cyberes 2024-04-07 16:00:07 -06:00 committed by GitHub
parent d6d3a6bc0f
commit 089d5589f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -216,12 +216,12 @@ def _merge(d, u):
"""
for k, v in u.items():
# if we have a mapping, recursively merge the values
if isinstance(v, collections.Mapping):
if isinstance(v, collections.abc.Mapping):
d[k] = _merge(d.get(k, {}), v)
# if d (the dict to merge into) is a dict, just add the
# value to the dict.
elif isinstance(d, collections.MutableMapping):
elif isinstance(d, collections.abc.MutableMapping):
d[k] = v
# otherwise if d (the dict to merge into) is not a dict (e.g. when