Removed __eq__ on dates
svn: r10044
This commit is contained in:
parent
6ad3a48d64
commit
76d1f660f0
@ -306,8 +306,9 @@ class Date:
|
|||||||
else:
|
else:
|
||||||
raise AttributeError, "unknown date sub type: %s " % type(other)
|
raise AttributeError, "unknown date sub type: %s " % type(other)
|
||||||
|
|
||||||
def __eq__(self, other):
|
# Can't use this (as is) as this breaks comparing dates to None
|
||||||
return self.sortval == other.sortval
|
#def __eq__(self, other):
|
||||||
|
# return self.sortval == other.sortval
|
||||||
|
|
||||||
def __lt__(self, other):
|
def __lt__(self, other):
|
||||||
return self.sortval < other.sortval
|
return self.sortval < other.sortval
|
||||||
|
Loading…
Reference in New Issue
Block a user