Code Repositories xandikos / c5b53e3
Don't reuse the start variable. Jelmer Vernooij a month ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
5555
5656 def __init__(self, property_name):
5757 super(MissingProperty, self).__init__(
58 "Property %r missing" % property_name)
58 "Property %r missing" % property_name)
5959 self.property_name = property_name
6060
6161
351351 if comp['DTSTART'] is None:
352352 raise MissingProperty('DTSTART')
353353
354 start = tzify(comp['DTSTART'].dt)
355
356 if not (end > start):
354 if not (end > tzify(comp['DTSTART'].dt)):
357355 return False
358356
359357 if 'DTEND' in comp: