Skip to content

Commit 6e20165

Browse files
committed
fix string formatting in assert statement
1 parent 7ae781b commit 6e20165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonpointer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def walk(self, doc, part):
218218

219219
part = self.get_part(doc, part)
220220

221-
assert (type(doc) in (dict, list) or hasattr(doc, '__getitem__')), "invalid document type %s" (type(doc))
221+
assert (type(doc) in (dict, list) or hasattr(doc, '__getitem__')), "invalid document type %s" % (type(doc),)
222222

223223
if isinstance(doc, dict):
224224
try:

0 commit comments

Comments
 (0)