Package: python-validictory
Followup-For: Bug #1001480
User: ubuntu-de...@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/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru python-validictory-1.1.2/debian/patches/python-3.10.patch 
python-validictory-1.1.2/debian/patches/python-3.10.patch
--- python-validictory-1.1.2/debian/patches/python-3.10.patch   1969-12-31 
16:00:00.000000000 -0800
+++ python-validictory-1.1.2/debian/patches/python-3.10.patch   2021-12-11 
10:05:22.000000000 -0800
@@ -0,0 +1,18 @@
+Description: Compatibility with python 3.10
+Author: Steve Langasek <steve.langa...@ubuntu.com>
+Last-Update: 2021-12-11
+Forwarded: no
+
+Index: python-validictory-1.1.2/validictory/validator.py
+===================================================================
+--- python-validictory-1.1.2.orig/validictory/validator.py
++++ python-validictory-1.1.2/validictory/validator.py
+@@ -4,7 +4,7 @@
+ import socket
+ from datetime import datetime
+ from decimal import Decimal
+-from collections import Mapping, Container
++from collections.abc import Mapping, Container
+ 
+ if sys.version_info[0] == 3:
+     _str_type = str
diff -Nru python-validictory-1.1.2/debian/patches/series 
python-validictory-1.1.2/debian/patches/series
--- python-validictory-1.1.2/debian/patches/series      1969-12-31 
16:00:00.000000000 -0800
+++ python-validictory-1.1.2/debian/patches/series      2021-12-11 
10:04:27.000000000 -0800
@@ -0,0 +1 @@
+python-3.10.patch

Reply via email to