Added a __getitem__ method to date Spans which should eventually be removed. I belive that only the Det*Reports.py use them.
svn: r11566
This commit is contained in:
parent
61ca9201b5
commit
8658f5a074
@ -259,6 +259,10 @@ class Span:
|
||||
def is_valid(self):
|
||||
return self.valid
|
||||
|
||||
def __getitem__(self, pos):
|
||||
# Depricated!
|
||||
return self._diff(self.date1, self.date2)[pos]
|
||||
|
||||
def __int__(self):
|
||||
if self.negative:
|
||||
return -self.sort[0]
|
||||
|
Loading…
Reference in New Issue
Block a user