summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kögl <stefan@skoegl.net>2013-11-22 16:22:10 +0100
committerStefan Kögl <stefan@skoegl.net>2013-11-22 16:22:10 +0100
commit6e2016548fbcdaf898ff117a10f014a721c4a305 (patch)
tree3d989bc19fb1011bd32d5c6a17bf3de0ff289e18
parent7ae781bcc7bafe90c1b1e1a36538b17c3ef5fff5 (diff)
downloadpython-json-pointer-6e2016548fbcdaf898ff117a10f014a721c4a305.tar.gz
fix string formatting in assert statement
-rw-r--r--jsonpointer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonpointer.py b/jsonpointer.py
index 648a377..67a377f 100644
--- a/jsonpointer.py
+++ b/jsonpointer.py
@@ -218,7 +218,7 @@ class JsonPointer(object):
part = self.get_part(doc, part)
- assert (type(doc) in (dict, list) or hasattr(doc, '__getitem__')), "invalid document type %s" (type(doc))
+ assert (type(doc) in (dict, list) or hasattr(doc, '__getitem__')), "invalid document type %s" % (type(doc),)
if isinstance(doc, dict):
try: