summaryrefslogtreecommitdiff
path: root/jsonpointer.py
diff options
context:
space:
mode:
authorStefan Kögl <stefan@skoegl.net>2015-05-07 17:44:30 +0200
committerStefan Kögl <stefan@skoegl.net>2015-05-07 17:44:30 +0200
commit56a06e5a9bbdc2a5ba6be2dab2e0e05767599e66 (patch)
treedf3221acdd320424cb5d91ac6fcd75afa87eb863 /jsonpointer.py
parentdb861fb00eed47462176280fea0525b96cce31c3 (diff)
downloadpython-json-pointer-56a06e5a9bbdc2a5ba6be2dab2e0e05767599e66.tar.gz
Fix UnicodeEncodeError with non-ASCII paths, fixes #18
Diffstat (limited to 'jsonpointer.py')
-rw-r--r--jsonpointer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/jsonpointer.py b/jsonpointer.py
index 0f115d7..a465c69 100644
--- a/jsonpointer.py
+++ b/jsonpointer.py
@@ -49,6 +49,7 @@ __license__ = 'Modified BSD License'
try:
from urllib import unquote
from itertools import izip
+ str = unicode
except ImportError: # Python 3
from urllib.parse import unquote
izip = zip