Bug#1001428: python-pyknon: (autopkgtest) needs update for python3.10: module 'collections' has no attribute 'MutableSequence'
Package: python-pyknon
Version: 1.2-3
Followup-For: Bug #1001428
User: ubuntu-devel@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@ubuntu.com vorlon@debian.org
diff -Nru python-pyknon-1.2/debian/patches/python-3.10.patch python-pyknon-1.2/debian/patches/python-3.10.patch
--- python-pyknon-1.2/debian/patches/python-3.10.patch 1969-12-31 16:00:00.000000000 -0800
+++ python-pyknon-1.2/debian/patches/python-3.10.patch 2021-12-11 09:59:59.000000000 -0800
@@ -0,0 +1,16 @@
+Description: Compatibility with python 3.10
+Author: Steve Langasek <steve.langasek@ubuntu.com>
+Bug-Debian: https://bugs.debian.org/1001428
+Last-Update: 2021-12-11
+Forwarded: no
+
+Index: python-pyknon-1.2/pyknon/music.py
+===================================================================
+--- python-pyknon-1.2.orig/pyknon/music.py
++++ python-pyknon-1.2/pyknon/music.py
+@@ -1,4 +1,4 @@
+-import collections
++import collections.abc as collections
+ import copy
+ from pyknon import notation
+
diff -Nru python-pyknon-1.2/debian/patches/series python-pyknon-1.2/debian/patches/series
--- python-pyknon-1.2/debian/patches/series 2020-01-20 04:49:49.000000000 -0800
+++ python-pyknon-1.2/debian/patches/series 2021-12-11 09:59:00.000000000 -0800
@@ -1 +1,2 @@
remove_pngmath.diff
+python-3.10.patch
Reply to: