From 0427670ffa4fd8f70824dbf9533514f9a4daeff3 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Wed, 17 Jul 2019 09:53:27 +0200 Subject: allow dump of deepcopied data from commented YAML fixes issue #295 *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))* --- error.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'error.py') diff --git a/error.py b/error.py index ab1072d..965ff7b 100644 --- a/error.py +++ b/error.py @@ -39,6 +39,16 @@ class StreamMark(object): where = ' in "%s", line %d, column %d' % (self.name, self.line + 1, self.column + 1) return where + def __eq__(self, other): + if self.line != other.line or self.column != other.column: + return False + if self.name != other.name or self.index != other.index: + return False + return True + + def __ne__(self, other): + return not self.__eq__(other) + class FileMark(StreamMark): __slots__ = () -- cgit v1.2.1