Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jsonpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __repr__(self):


class JsonPointer(object):
"""A JSON Pointer that can reference parts of an JSON document"""
"""A JSON Pointer that can reference parts of a JSON document"""

# Array indices must not contain:
# leading zeros, signs, spaces, decimals, etc
Expand All @@ -179,7 +179,7 @@ def __init__(self, pointer):

parts = pointer.split('/')
if parts.pop(0) != '':
raise JsonPointerException('location must starts with /')
raise JsonPointerException('Location must start with /')

parts = [unescape(part) for part in parts]
self.parts = parts
Expand Down Expand Up @@ -217,7 +217,7 @@ def set(self, doc, value, inplace=True):

if len(self.parts) == 0:
if inplace:
raise JsonPointerException('cannot set root in place')
raise JsonPointerException('Cannot set root in place')
return value

if not inplace:
Expand Down