[Python-modules-team] Bug#1001427: python-pygtrie: (autopkgtest) needs update for python3.10: module 'collections' has no attribute 'MutableMapping'
Steve Langasek
steve.langasek at canonical.com
Sat Dec 11 07:26:46 GMT 2021
Package: python-pygtrie
Followup-For: Bug #1001427
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch
Control: tags -1 patch
Please find attached a 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 python-pygtrie-2.2/debian/patches/python-3.10.patch python-pygtrie-2.2/debian/patches/python-3.10.patch
--- python-pygtrie-2.2/debian/patches/python-3.10.patch 1969-12-31 16:00:00.000000000 -0800
+++ python-pygtrie-2.2/debian/patches/python-3.10.patch 2021-12-10 23:21:32.000000000 -0800
@@ -0,0 +1,18 @@
+Description: compatibility with python 3.10
+Author: Steve Langasek <steve.langasek at ubuntu.com>
+Last-Update: 2021-12-10
+Forwarded: no
+
+Index: python-pygtrie-2.2/pygtrie.py
+===================================================================
+--- python-pygtrie-2.2.orig/pygtrie.py
++++ python-pygtrie-2.2/pygtrie.py
+@@ -39,7 +39,7 @@
+ __copyright__ = 'Copyright 2014 Google Inc.'
+
+
+-import collections as _collections
++import collections.abc as _collections
+
+ # Python 2.x and 3.x compatibility stuff
+ if hasattr(dict, 'iteritems'):
diff -Nru python-pygtrie-2.2/debian/patches/series python-pygtrie-2.2/debian/patches/series
--- python-pygtrie-2.2/debian/patches/series 2018-05-01 04:36:21.000000000 -0700
+++ python-pygtrie-2.2/debian/patches/series 2021-12-10 23:20:53.000000000 -0800
@@ -1 +1,2 @@
0001-Allow-Sphinx-to-build.patch
+python-3.10.patch
More information about the Python-modules-team
mailing list