summaryrefslogtreecommitdiff
path: root/sphinx/pycode/nodes.py
diff options
context:
space:
mode:
authorDasIch <dasdasich@googlemail.com>2010-05-01 19:18:31 +0200
committerDasIch <dasdasich@googlemail.com>2010-05-01 19:18:31 +0200
commitd82fcd12dbf85af674b7f1ae96f83e8f8c5134ff (patch)
tree6a49031f9f3376f4ce2ad6560ce39561013a0b9a /sphinx/pycode/nodes.py
parenta25745aa06d3cdad97988e8795fb2492133a55c8 (diff)
downloadsphinx-d82fcd12dbf85af674b7f1ae96f83e8f8c5134ff.tar.gz
Make sphinx.pycode.nodes.BaseNode unhashable
Diffstat (limited to 'sphinx/pycode/nodes.py')
-rw-r--r--sphinx/pycode/nodes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/pycode/nodes.py b/sphinx/pycode/nodes.py
index e7184677..fc6eb93a 100644
--- a/sphinx/pycode/nodes.py
+++ b/sphinx/pycode/nodes.py
@@ -29,6 +29,8 @@ class BaseNode(object):
return NotImplemented
return not self._eq(other)
+ __hash__ = None
+
def get_prev_sibling(self):
"""Return previous child in parent's children, or None."""
if self.parent is None: