[Python-modules-team] Bug#1001489: twodict: (autopkgtest) needs update for python3.10: 'collections' has no attribute 'KeysView'

Steve Langasek steve.langasek at canonical.com
Sat Dec 11 21:04:19 GMT 2021


Package: twodict
Version: 1.2-2
Followup-For: Bug #1001489
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 twodict-1.2/debian/patches/python-3.10.patch twodict-1.2/debian/patches/python-3.10.patch
--- twodict-1.2/debian/patches/python-3.10.patch	1969-12-31 16:00:00.000000000 -0800
+++ twodict-1.2/debian/patches/python-3.10.patch	2021-12-11 10:50:51.000000000 -0800
@@ -0,0 +1,19 @@
+Description: Compatibility with python 3.10
+Author: Steve Langasek <steve.langasek at ubuntu.com>
+Bug-Debian: https://bugs.debian.org/1001489
+Last-Update: 2021-12-11
+Forwarded: no
+
+Index: twodict-1.2/twodict.py
+===================================================================
+--- twodict-1.2.orig/twodict.py
++++ twodict-1.2/twodict.py
+@@ -6,7 +6,7 @@
+ """
+ 
+ import sys
+-import collections
++import collections.abc as collections
+ 
+ 
+ __all__ = ["TwoWayOrderedDict"]
diff -Nru twodict-1.2/debian/patches/series twodict-1.2/debian/patches/series
--- twodict-1.2/debian/patches/series	1969-12-31 16:00:00.000000000 -0800
+++ twodict-1.2/debian/patches/series	2021-12-11 10:49:49.000000000 -0800
@@ -0,0 +1 @@
+python-3.10.patch


More information about the Python-modules-team mailing list