summaryrefslogtreecommitdiffstats
path: root/debian/patches/python-3.10.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-09-16 09:10:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-09-16 09:10:28 +0000
commitda54d93c78560e0d5fe69272c7baa914f9ad58bd (patch)
treecb876c5f8c0a6544f170c09ec606c90e19cb53af /debian/patches/python-3.10.patch
parentAdding upstream version 2.2.0. (diff)
downloadcolorclass-da54d93c78560e0d5fe69272c7baa914f9ad58bd.tar.xz
colorclass-da54d93c78560e0d5fe69272c7baa914f9ad58bd.zip
Adding debian version 2.2.0-3.debian/2.2.0-3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/python-3.10.patch')
-rw-r--r--debian/patches/python-3.10.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/python-3.10.patch b/debian/patches/python-3.10.patch
new file mode 100644
index 0000000..99ccc33
--- /dev/null
+++ b/debian/patches/python-3.10.patch
@@ -0,0 +1,19 @@
+Description: compatibility with python 3.10
+Author: Steve Langasek <steve.langasek@ubuntu.com>
+Bug-Debian: https://bugs.debian.org/1001289
+Last-Update: 2021-12-10
+Forwarded: no
+
+Index: colorclass-2.2.0/colorclass/codes.py
+===================================================================
+--- colorclass-2.2.0.orig/colorclass/codes.py
++++ colorclass-2.2.0/colorclass/codes.py
+@@ -1,7 +1,7 @@
+ """Handles mapping between color names and ANSI codes and determining auto color codes."""
+
+ import sys
+-from collections import Mapping
++from collections.abc import Mapping
+
+ BASE_CODES = {
+ '/all': 0, 'b': 1, 'f': 2, 'i': 3, 'u': 4, 'flash': 5, 'outline': 6, 'negative': 7, 'invis': 8, 'strike': 9,