summaryrefslogtreecommitdiff
path: root/jinja2/nodes.py
diff options
context:
space:
mode:
Diffstat (limited to 'jinja2/nodes.py')
-rw-r--r--jinja2/nodes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/jinja2/nodes.py b/jinja2/nodes.py
index 81fafb8..c5697e6 100644
--- a/jinja2/nodes.py
+++ b/jinja2/nodes.py
@@ -232,6 +232,9 @@ class Node(with_metaclass(NodeType, object)):
def __ne__(self, other):
return not self.__eq__(other)
+ # Restore Python 2 hashing behavior on Python 3
+ __hash__ = object.__hash__
+
def __repr__(self):
return '%s(%s)' % (
self.__class__.__name__,