From 6e2016548fbcdaf898ff117a10f014a721c4a305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Fri, 22 Nov 2013 16:22:10 +0100 Subject: fix string formatting in assert statement --- jsonpointer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jsonpointer.py') 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: -- cgit v1.2.1