summaryrefslogtreecommitdiff
path: root/jsonschema/exceptions.py
diff options
context:
space:
mode:
authorStuart Berg <bergs@janelia.hhmi.org>2018-12-05 20:38:38 -0500
committerStuart Berg <bergs@janelia.hhmi.org>2018-12-05 20:51:06 -0500
commita7ca0c50f39814854403cbd7d47f1288888e6ec3 (patch)
treeb6b3e6e7e26f4d874037183dd8790043471de975 /jsonschema/exceptions.py
parent1a8ea88623043dc211311f2ea2a292f99a11a85c (diff)
downloadjsonschema-a7ca0c50f39814854403cbd7d47f1288888e6ec3.tar.gz
Make exceptions hashable (but not comparable)
Fixes #477
Diffstat (limited to 'jsonschema/exceptions.py')
-rw-r--r--jsonschema/exceptions.py10
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)