2015-05-16 | Paul Boddie | raw files shortlog changelog graph | Require start and end datetimes in periods. | |
imiptools/period.py (file) |
1.1 --- a/imiptools/period.py Sat May 16 18:09:37 2015 +0200 1.2 +++ b/imiptools/period.py Sat May 16 18:26:23 2015 +0200 1.3 @@ -29,7 +29,7 @@ 1.4 1.5 "A basic period abstraction." 1.6 1.7 - def __init__(self, start, end=None, origin=None): 1.8 + def __init__(self, start, end, origin=None): 1.9 self.start = isinstance(start, date) and start or get_datetime(start) 1.10 self.end = isinstance(end, date) and end or get_datetime(end) 1.11 self.origin = origin