From 9d21d9b4e6beeebab9057bb50bdd579a4d3c52ff Mon Sep 17 00:00:00 2001 From: 0xdbe <23268141+0xdbe@users.noreply.github.com> Date: Fri, 1 Jul 2022 17:37:12 +0200 Subject: [PATCH 1/2] fix: remove wsgiref as dependency because it is already been included as a standard library in Python 3 --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 031fa4b..2a8be62 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,3 @@ chardet==3.0.4 idna==2.8 requests==2.22.0 urllib3==1.24.1 -wsgiref==0.1.2 From 016ab828e8416b50bb59e4e185030f362e259ed1 Mon Sep 17 00:00:00 2001 From: 0xdbe <23268141+0xdbe@users.noreply.github.com> Date: Fri, 1 Jul 2022 18:37:58 +0200 Subject: [PATCH 2/2] fix: use collections.abc.mapping instead of collections.mapping (module change in python 3.3) --- core/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/plugin.py b/core/plugin.py index 92127fc..22ab1c4 100644 --- a/core/plugin.py +++ b/core/plugin.py @@ -18,8 +18,8 @@ def _recursive_update(d, u): # Update value of a nested dictionary of varying depth for k, v in u.items(): - if isinstance(d, collections.Mapping): - if isinstance(v, collections.Mapping): + if isinstance(d, collections.abc.Mapping): + if isinstance(v, collections.abc.Mapping): r = _recursive_update(d.get(k, {}), v) d[k] = r else: