From bee8d27831c87f37bcaf46c04e248fa2eff9212c Mon Sep 17 00:00:00 2001 From: aromanovich Date: Thu, 4 Sep 2014 21:16:56 +0600 Subject: Fix Error.absolute_path logic --- jsonschema/exceptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jsonschema/exceptions.py') 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): -- cgit v1.2.1