summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Hees <joernhees@users.noreply.github.com>2017-02-17 15:30:43 +0100
committerGitHub <noreply@github.com>2017-02-17 15:30:43 +0100
commitf72b51aebcbc5d7d0650f94e5f0b9bcec8c597cc (patch)
treeae0ffdd05aa488f0f3d2aed835b1b404ffb502f6
parent1e48f8f13b8cb480e7dddac2c897026d05e41ec2 (diff)
downloadrdflib-f72b51aebcbc5d7d0650f94e5f0b9bcec8c597cc.tar.gz
IsomorphicGraph no explicitly redefines __hash__
in py3 overriding __eq__ implicitly resets __hash__
-rw-r--r--rdflib/compare.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/rdflib/compare.py b/rdflib/compare.py
index bf311438..5e3f5994 100644
--- a/rdflib/compare.py
+++ b/rdflib/compare.py
@@ -168,6 +168,9 @@ class IsomorphicGraph(ConjunctiveGraph):
"""Negative graph isomorphism testing."""
return not self.__eq__(other)
+ def __hash__(self):
+ return super(IsomorphicGraph, self).__hash__()
+
def graph_digest(self, stats=None):
"""Synonym for IsomorphicGraph.internal_hash."""
return self.internal_hash(stats=stats)