Package: python3-stem X-Debbugs-Cc: j...@riseup.net Version: 1.8.0-3 Severity: normal
Dear Maintainer,attached you can find a patch to fix a bug with Python 3.10, which is now the default in unstable and testing.
Thanks!, juxor
From 8da5611471c2dfbfd93e93a0113e8276914a16a9 Mon Sep 17 00:00:00 2001 From: juxor <j...@riseup.net> Date: Thu, 28 Apr 2022 16:10:46 +0000 Subject: [PATCH] d/patches: Fix for Python 3.10 --- debian/patches/fix-python3.10.patch | 14 ++++++++++++++ debian/patches/series | 1 + 2 files changed, 15 insertions(+) create mode 100644 debian/patches/fix-python3.10.patch diff --git a/debian/patches/fix-python3.10.patch b/debian/patches/fix-python3.10.patch new file mode 100644 index 0000000..95cf653 --- /dev/null +++ b/debian/patches/fix-python3.10.patch @@ -0,0 +1,14 @@ +Description: Fix for Python 3.10 +Author: ju xor <j...@riseup.net> +Last-Update: 2022-04-28 +--- a/stem/control.py ++++ b/stem/control.py +@@ -2532,7 +2532,7 @@ + for param, value in params: + if isinstance(value, str): + query_comp.append('%s="%s"' % (param, value.strip())) +- elif isinstance(value, collections.Iterable): ++ elif isinstance(value, collections.abc.Iterable): + query_comp.extend(['%s="%s"' % (param, val.strip()) for val in value]) + elif not value: + query_comp.append(param) diff --git a/debian/patches/series b/debian/patches/series index 55077d0..bb84a5f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ reproducible-build.patch +fix-python3.10.patch -- 2.30.2