forked from pool/python-dirtyjson
26 lines
833 B
Diff
26 lines
833 B
Diff
|
|
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
|