diff options
Diffstat (limited to 'jsonschema/exceptions.py')
-rw-r--r-- | jsonschema/exceptions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jsonschema/exceptions.py b/jsonschema/exceptions.py index 9cfbb7f..e8da352 100644 --- a/jsonschema/exceptions.py +++ b/jsonschema/exceptions.py @@ -112,12 +112,12 @@ class _Error(Exception): @property def json_path(self): - path = '$' + path = "$" for elem in self.absolute_path: if isinstance(elem, int): - path += '[' + str(elem) + ']' + path += "[" + str(elem) + "]" else: - path += '.' + elem + path += "." + elem return path def _set(self, **kwargs): |