Removed __eq__ on dates

svn: r10044
This commit is contained in:
Doug Blank 2008-02-17 18:04:36 +00:00
parent 6ad3a48d64
commit 76d1f660f0

View File

@ -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