From 76d1f660f0cf72e2d5b55b2dc45c7be4319ccbf1 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 17 Feb 2008 18:04:36 +0000 Subject: [PATCH] Removed __eq__ on dates svn: r10044 --- src/gen/lib/date.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gen/lib/date.py b/src/gen/lib/date.py index f07512501..5334afa59 100644 --- a/src/gen/lib/date.py +++ b/src/gen/lib/date.py @@ -306,8 +306,9 @@ class Date: else: raise AttributeError, "unknown date sub type: %s " % type(other) - def __eq__(self, other): - return self.sortval == other.sortval + # Can't use this (as is) as this breaks comparing dates to None + #def __eq__(self, other): + # return self.sortval == other.sortval def __lt__(self, other): return self.sortval < other.sortval