# HG changeset patch # User Paul Boddie # Date 1431793583 -7200 # Node ID 9aa0d03293385e81febdcdf8290f83284dc49242 # Parent a7e8fd4378c2a0708539fd4a82948efe8539efc5 Require start and end datetimes in periods. diff -r a7e8fd4378c2 -r 9aa0d0329338 imiptools/period.py --- a/imiptools/period.py Sat May 16 18:09:37 2015 +0200 +++ b/imiptools/period.py Sat May 16 18:26:23 2015 +0200 @@ -29,7 +29,7 @@ "A basic period abstraction." - def __init__(self, start, end=None, origin=None): + def __init__(self, start, end, origin=None): self.start = isinstance(start, date) and start or get_datetime(start) self.end = isinstance(end, date) and end or get_datetime(end) self.origin = origin