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:
Doug Blank 2009-01-04 18:05:26 +00:00
parent 61ca9201b5
commit 8658f5a074

View File

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