[Python-modules-team] Bug#1001295: dominate: needs update for python3.10: 'Callable' from 'collections' is removed

Steve Langasek steve.langasek at canonical.com
Fri Dec 10 20:21:05 GMT 2021


Package: dominate
Version: 2.3.1-2
Followup-For: Bug #1001295
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch
Control: tags -1 patch

Please find attached a trivial patch for this issue.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru dominate-2.3.1/debian/patches/python-3.10.patch dominate-2.3.1/debian/patches/python-3.10.patch
--- dominate-2.3.1/debian/patches/python-3.10.patch	1969-12-31 16:00:00.000000000 -0800
+++ dominate-2.3.1/debian/patches/python-3.10.patch	2021-12-10 12:19:46.000000000 -0800
@@ -0,0 +1,20 @@
+Description: compatibility with python 3.10
+Author: Steve Langasek <steve.langasek at ubuntu.com>
+Bug-Debian: https://bugs.debian.org/1001295
+Last-Update: 2021-12-10
+Forwarded: no
+
+Index: dominate-2.3.1/dominate/dom_tag.py
+===================================================================
+--- dominate-2.3.1.orig/dominate/dom_tag.py
++++ dominate-2.3.1/dominate/dom_tag.py
+@@ -20,7 +20,8 @@
+ 
+ import copy
+ import numbers
+-from collections import defaultdict, namedtuple, Callable
++from collections import defaultdict, namedtuple
++from collections.abc import Callable
+ from functools import wraps
+ import threading
+ 
diff -Nru dominate-2.3.1/debian/patches/series dominate-2.3.1/debian/patches/series
--- dominate-2.3.1/debian/patches/series	1969-12-31 16:00:00.000000000 -0800
+++ dominate-2.3.1/debian/patches/series	2021-12-10 12:18:37.000000000 -0800
@@ -0,0 +1 @@
+python-3.10.patch


More information about the Python-modules-team mailing list