Skip to content

Commit

Permalink
Merge pull request #31 from kislyuk/patch-1
Browse files Browse the repository at this point in the history
Fix typos in messages
  • Loading branch information
stefankoegl committed Jun 28, 2018
2 parents 05232a7 + 63b2682 commit ae613eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsonpointer.py
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

0 comments on commit ae613eb

Please sign in to comment.