summaryrefslogtreecommitdiff
path: root/jsonpatch.py
diff options
context:
space:
mode:
authorStefan Kögl <stefan@skoegl.net>2017-09-10 17:28:34 +0200
committerStefan Kögl <stefan@skoegl.net>2017-09-10 19:24:48 +0200
commitd602f5ef961382d64368cb90567642c0dabb582e (patch)
treecbdef71aad5583e09cda7036e769fb876c77bf11 /jsonpatch.py
parent3cec8a09c4b0f810028d16c8ef88f2b1837bbeb1 (diff)
downloadpython-json-patch-d602f5ef961382d64368cb90567642c0dabb582e.tar.gz
Fix unicode dict keys in Python 2
Diffstat (limited to 'jsonpatch.py')
-rw-r--r--jsonpatch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/jsonpatch.py b/jsonpatch.py
index 705b4ed..b490108 100644
--- a/jsonpatch.py
+++ b/jsonpatch.py
@@ -51,8 +51,10 @@ _ST_REMOVE = 1
try:
from collections.abc import MutableMapping, MutableSequence
+
except ImportError:
from collections import MutableMapping, MutableSequence
+ str = unicode
# Will be parsed by setup.py to determine package metadata
__author__ = 'Stefan Kögl <stefan@skoegl.net>'