From ff27dd0199e3c7dbcfac5de505223bebb9934a05 Mon Sep 17 00:00:00 2001 From: Aurelien Campeas Date: Wed, 11 Sep 2013 18:45:06 +0200 Subject: [py3k] kill future warning on __eq__ vs __hash__ --- table.py | 2 ++ tasksqueue.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/table.py b/table.py index 5fdc148..f40d3b3 100644 --- a/table.py +++ b/table.py @@ -48,6 +48,8 @@ class Table(object): else: return list(self) == list(other) + __hash__ = object.__hash__ + def __ne__(self, other): return not self == other diff --git a/tasksqueue.py b/tasksqueue.py index e95a77e..71b57c1 100644 --- a/tasksqueue.py +++ b/tasksqueue.py @@ -94,5 +94,7 @@ class Task(object): def __eq__(self, other): return self.id == other.id + __hash__ = object.__hash__ + def merge(self, other): pass -- cgit v1.2.1