diff options
author | Stefan Kögl <stefan@skoegl.net> | 2018-06-28 22:04:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 22:04:45 +0200 |
commit | ae613eb6d298bca0615aa822c6d278f430b24b8f (patch) | |
tree | 7ac118b8567cb38c8630d00f79ea52a4cfadb5c4 /jsonpointer.py | |
parent | 05232a753b4b03ca248cc947a54be60eb6b68173 (diff) | |
parent | 63b2682663fb14e4af42edffea1eea106019eabe (diff) | |
download | python-json-pointer-ae613eb6d298bca0615aa822c6d278f430b24b8f.tar.gz |
Merge pull request #31 from kislyuk/patch-1
Fix typos in messages
Diffstat (limited to 'jsonpointer.py')
-rw-r--r-- | jsonpointer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jsonpointer.py b/jsonpointer.py index a844729..ec18cbe 100644 --- a/jsonpointer.py +++ b/jsonpointer.py @@ -162,7 +162,7 @@ class EndOfList(object): 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 @@ -179,7 +179,7 @@ class JsonPointer(object): 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 @@ -217,7 +217,7 @@ class JsonPointer(object): 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: |