diff options
author | Stefan Kögl <stefan@skoegl.net> | 2013-11-22 16:22:10 +0100 |
---|---|---|
committer | Stefan Kögl <stefan@skoegl.net> | 2013-11-22 16:22:10 +0100 |
commit | 6e2016548fbcdaf898ff117a10f014a721c4a305 (patch) | |
tree | 3d989bc19fb1011bd32d5c6a17bf3de0ff289e18 | |
parent | 7ae781bcc7bafe90c1b1e1a36538b17c3ef5fff5 (diff) | |
download | python-json-pointer-6e2016548fbcdaf898ff117a10f014a721c4a305.tar.gz |
fix string formatting in assert statement
-rw-r--r-- | jsonpointer.py | 2 |
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: |