forked from pool/python-dirtyjson
- Add patch support-python-310.patch:
* Support Python 3.10. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dirtyjson?expand=0&rev=5
This commit is contained in:
25
support-python-310.patch
Normal file
25
support-python-310.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From 45d359a9e061f5a2e00d8f38817372a0e39822ae Mon Sep 17 00:00:00 2001
|
||||
From: Eric Swanson <eswanson@alloscomp.com>
|
||||
Date: Fri, 17 Dec 2021 11:38:13 -0500
|
||||
Subject: [PATCH] Python 3.10 support
|
||||
|
||||
---
|
||||
dirtyjson/attributed_containers.py | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dirtyjson/attributed_containers.py b/dirtyjson/attributed_containers.py
|
||||
index c71e411..147f303 100644
|
||||
--- a/dirtyjson/attributed_containers.py
|
||||
+++ b/dirtyjson/attributed_containers.py
|
||||
@@ -4,7 +4,10 @@
|
||||
|
||||
"""
|
||||
try:
|
||||
- from collections import MutableMapping as DictMixin
|
||||
+ try:
|
||||
+ from collections.abc import MutableMapping as DictMixin
|
||||
+ except ImportError:
|
||||
+ from collections import MutableMapping as DictMixin
|
||||
py_level = 3
|
||||
except ImportError:
|
||||
# noinspection PyUnresolvedReferences,PyCompatibility
|
||||
Reference in New Issue
Block a user