Skip to content

Commit d602f5e

Browse files
committed
Fix unicode dict keys in Python 2
1 parent 3cec8a0 commit d602f5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jsonpatch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@
5151

5252
try:
5353
from collections.abc import MutableMapping, MutableSequence
54+
5455
except ImportError:
5556
from collections import MutableMapping, MutableSequence
57+
str = unicode
5658

5759
# Will be parsed by setup.py to determine package metadata
5860
__author__ = 'Stefan Kögl <[email protected]>'

0 commit comments

Comments
 (0)