Added lt and gt for date span comparisons
svn: r11523
This commit is contained in:
1 parent
42b00f04f4
commit
fadeb3744e
1 file changed
+11
@@ -101,6 +101,17 @@ class Span:
|
||||
return False
|
||||
return self.diff_tuple == other.diff_tuple
|
||||
|
||||
def __lt__(self, other):
|
||||
if other is None:
|
||||
return False
|
||||
return self.diff_tuple < other.diff_tuple
|
||||
|
||||
def __gt__(self, other):
|
||||
if other is None:
|
||||
return False
|
||||
return self.diff_tuple > other.diff_tuple
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Date class
|
||||
|
||||
Reference in new issue
Block a user