1.1 --- a/imiptools/period.py Tue Oct 20 18:39:52 2015 +0200
1.2 +++ b/imiptools/period.py Tue Oct 20 19:42:52 2015 +0200
1.3 @@ -79,6 +79,9 @@
1.4 def __rcmp__(self, other):
1.5 return -self.__cmp__(other)
1.6
1.7 + def __nonzero__(self):
1.8 + return False
1.9 +
1.10 class EndOfTime(PointInTime):
1.11
1.12 "A special value that compares later than other values."
1.13 @@ -92,6 +95,9 @@
1.14 def __rcmp__(self, other):
1.15 return -self.__cmp__(other)
1.16
1.17 + def __nonzero__(self):
1.18 + return False
1.19 +
1.20 class PeriodBase:
1.21
1.22 "A basic period abstraction."