From d82fcd12dbf85af674b7f1ae96f83e8f8c5134ff Mon Sep 17 00:00:00 2001 From: DasIch Date: Sat, 1 May 2010 19:18:31 +0200 Subject: Make sphinx.pycode.nodes.BaseNode unhashable --- sphinx/pycode/nodes.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sphinx/pycode/nodes.py') 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: -- cgit v1.2.1