diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-08-08 23:13:33 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-08-08 23:13:33 +0200 |
| commit | e0988ecd1ea90fc7c75ecd9f0959cef5fd9021ff (patch) | |
| tree | c6a8f2380d27b31b58730b5874bf2acc9c6545d0 | |
| parent | b8e49d70f2bbbb9008dbbf9d8b0dee46dcf25fa6 (diff) | |
[py3] Made Element instances hashable
| -rw-r--r-- | django/test/html.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
