diff options
author | Stuart Berg <bergs@janelia.hhmi.org> | 2018-12-05 20:38:38 -0500 |
---|---|---|
committer | Stuart Berg <bergs@janelia.hhmi.org> | 2018-12-05 20:51:06 -0500 |
commit | a7ca0c50f39814854403cbd7d47f1288888e6ec3 (patch) | |
tree | b6b3e6e7e26f4d874037183dd8790043471de975 /jsonschema/exceptions.py | |
parent | 1a8ea88623043dc211311f2ea2a292f99a11a85c (diff) | |
download | jsonschema-a7ca0c50f39814854403cbd7d47f1288888e6ec3.tar.gz |
Make exceptions hashable (but not comparable)
Fixes #477
Diffstat (limited to 'jsonschema/exceptions.py')
-rw-r--r-- | jsonschema/exceptions.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/jsonschema/exceptions.py b/jsonschema/exceptions.py index f81fce0..9008182 100644 --- a/jsonschema/exceptions.py +++ b/jsonschema/exceptions.py @@ -55,16 +55,6 @@ class _Error(Exception): for error in context: error.parent = self - def __eq__(self, other): - if not isinstance(other, self.__class__): - return NotImplemented - return self._contents() == other._contents() - - def __ne__(self, other): - if not isinstance(other, self.__class__): - return NotImplemented - return not self == other - def __repr__(self): return "<%s: %r>" % (self.__class__.__name__, self.message) |