Package: deepdiff
Version: 3.3.0-2
Followup-For: Bug #1001292
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 deepdiff-3.3.0/debian/patches/python-3.10.patch 
deepdiff-3.3.0/debian/patches/python-3.10.patch
--- deepdiff-3.3.0/debian/patches/python-3.10.patch     1969-12-31 
16:00:00.000000000 -0800
+++ deepdiff-3.3.0/debian/patches/python-3.10.patch     2021-12-10 
12:15:00.000000000 -0800
@@ -0,0 +1,51 @@
+Description: Compatibility with python 3.10
+Author: Steve Langasek <steve.langa...@ubuntu.com>
+Bug-Debian: https://bugs.debian.org/1001292
+Last-Update: 2021-12-10
+Forwarded: no
+
+Index: deepdiff-3.3.0/deepdiff/diff.py
+===================================================================
+--- deepdiff-3.3.0.orig/deepdiff/diff.py
++++ deepdiff-3.3.0/deepdiff/diff.py
+@@ -16,8 +16,8 @@
+ 
+ from decimal import Decimal
+ 
+-from collections import Mapping
+-from collections import Iterable
++from collections.abc import Mapping
++from collections.abc import Iterable
+ 
+ from deepdiff.helper import py3, strings, bytes_type, numbers, 
ListItemRemovedOrAdded, notpresent, IndexedHash, Verbose
+ from deepdiff.model import RemapDict, ResultDict, TextResult, TreeResult, 
DiffLevel
+Index: deepdiff-3.3.0/deepdiff/contenthash.py
+===================================================================
+--- deepdiff-3.3.0.orig/deepdiff/contenthash.py
++++ deepdiff-3.3.0/deepdiff/contenthash.py
+@@ -3,8 +3,8 @@
+ from __future__ import absolute_import
+ from __future__ import print_function
+ import sys
+-from collections import Iterable
+-from collections import MutableMapping
++from collections.abc import Iterable
++from collections.abc import MutableMapping
+ from collections import defaultdict
+ from decimal import Decimal
+ from hashlib import sha1
+Index: deepdiff-3.3.0/deepdiff/search.py
+===================================================================
+--- deepdiff-3.3.0.orig/deepdiff/search.py
++++ deepdiff-3.3.0/deepdiff/search.py
+@@ -6,8 +6,8 @@
+ from __future__ import absolute_import
+ from __future__ import print_function
+ import sys
+-from collections import Iterable
+-from collections import MutableMapping
++from collections.abc import Iterable
++from collections.abc import MutableMapping
+ import logging
+ 
+ from deepdiff.helper import py3, strings, numbers, items
diff -Nru deepdiff-3.3.0/debian/patches/series 
deepdiff-3.3.0/debian/patches/series
--- deepdiff-3.3.0/debian/patches/series        1969-12-31 16:00:00.000000000 
-0800
+++ deepdiff-3.3.0/debian/patches/series        2021-12-10 12:14:03.000000000 
-0800
@@ -0,0 +1 @@
+python-3.10.patch

Reply via email to