From e0988ecd1ea90fc7c75ecd9f0959cef5fd9021ff Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 8 Aug 2012 23:13:33 +0200 Subject: [PATCH] [py3] Made Element instances hashable --- django/test/html.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/test/html.py b/django/test/html.py index 143c3728be..acdb4ffd14 100644 --- a/django/test/html.py +++ b/django/test/html.py @@ -83,6 +83,8 @@ class Element(object): return False return True + __hash__ = object.__hash__ + def __ne__(self, element): return not self.__eq__(element)