diff options
Diffstat (limited to 'lib/yaml/error.py')
-rw-r--r-- | lib/yaml/error.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/yaml/error.py b/lib/yaml/error.py index 2fae3eb..38f143e 100644 --- a/lib/yaml/error.py +++ b/lib/yaml/error.py @@ -63,16 +63,16 @@ class MarkedYAMLError(YAMLError): # lines.append(str(marker)) if self.context is not None: lines.append(self.context) - if self.context_marker is not None \ - and (self.problem is None or self.problem_marker is None - or self.context_marker.name != self.problem_marker.name - or self.context_marker.line != self.problem_marker.line - or self.context_marker.column != self.problem_marker.column): - lines.append(str(self.context_marker)) + if self.context_marker is not None \ + and (self.problem is None or self.problem_marker is None + or self.context_marker.name != self.problem_marker.name + or self.context_marker.line != self.problem_marker.line + or self.context_marker.column != self.problem_marker.column): + lines.append(str(self.context_marker)) if self.problem is not None: lines.append(self.problem) - if self.problem_marker is not None: - lines.append(str(self.problem_marker)) + if self.problem_marker is not None: + lines.append(str(self.problem_marker)) return '\n'.join(lines) |