# HG changeset patch # User Paul Boddie # Date 1505834836 -7200 # Node ID c264be83cabacf67c3c0637bc1a38636501a91d4 # Parent 8ccb4ffec367c3195d6eeaf0fa09bd848162db76 Minor docstring and code style changes. diff -r 8ccb4ffec367 -r c264be83caba imiptools/data.py --- a/imiptools/data.py Tue Sep 19 01:05:57 2017 +0200 +++ b/imiptools/data.py Tue Sep 19 17:27:16 2017 +0200 @@ -63,6 +63,10 @@ object = Object({"VEVENT" : event}) + A separately-stored, individual object can be obtained as follows: + + object = Object(parse_object(f, encoding)) + A convienience function is also provided to initialise objects: object = new_object("VEVENT") @@ -120,7 +124,16 @@ return None def get_recurrence_start_points(self, recurrenceids, tzid): - return [self.get_recurrence_start_point(recurrenceid, tzid) for recurrenceid in recurrenceids] + + """ + Return start points for 'recurrenceids' using the fallback 'tzid' for + identifiers with date representations. + """ + + points = [] + for recurrenceid in recurrenceids: + points.append(self.get_recurrence_start_point(recurrenceid, tzid)) + return points # Structure access.