From 089d5589f1b0cbf396a211f13e4c867f2d5bcda2 Mon Sep 17 00:00:00 2001 From: Cyberes <64224601+Cyberes@users.noreply.github.com> Date: Sun, 7 Apr 2024 16:00:07 -0600 Subject: [PATCH] fix depricated collections calls --- bison/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bison/utils.py b/bison/utils.py index 368c25b..21e4f4e 100644 --- a/bison/utils.py +++ b/bison/utils.py @@ -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