From 63b2682663fb14e4af42edffea1eea106019eabe Mon Sep 17 00:00:00 2001 From: Andrey Kislyuk Date: Fri, 1 Jun 2018 16:36:03 -0700 Subject: Fix typos in messages --- jsonpointer.py | 6 +++--- 1 file 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: -- cgit v1.2.1