summaryrefslogtreecommitdiff
path: root/jsonschema/exceptions.py
diff options
context:
space:
mode:
authoraromanovich <anthony.romanovich@gmail.com>2014-09-04 21:16:56 +0600
committeraromanovich <anthony.romanovich@gmail.com>2014-09-04 21:16:56 +0600
commitbee8d27831c87f37bcaf46c04e248fa2eff9212c (patch)
tree9c239d8d9a5e3d3582c86dbbf265b6ebcf39dba7 /jsonschema/exceptions.py
parent9f1827038e93663f54c6d6d3b81197a2648109c6 (diff)
downloadjsonschema-bee8d27831c87f37bcaf46c04e248fa2eff9212c.tar.gz
Fix Error.absolute_path logic
Diffstat (limited to 'jsonschema/exceptions.py')
-rw-r--r--jsonschema/exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonschema/exceptions.py b/jsonschema/exceptions.py
index 478e59c..46f1ce0 100644
--- a/jsonschema/exceptions.py
+++ b/jsonschema/exceptions.py
@@ -86,7 +86,7 @@ class _Error(Exception):
return self.relative_path
path = deque(self.relative_path)
- path.extendleft(parent.absolute_path)
+ path.extendleft(reversed(parent.absolute_path))
return path
@property
@@ -96,7 +96,7 @@ class _Error(Exception):
return self.relative_schema_path
path = deque(self.relative_schema_path)
- path.extendleft(parent.absolute_schema_path)
+ path.extendleft(reversed(parent.absolute_schema_path))
return path
def _set(self, **kwargs):