Remove spaces from empty lines

This commit is contained in:
Guillaume Ayoub 2016-06-26 21:23:29 +02:00
parent dfc215b63f
commit 4e8f518cbb

View File

@ -222,7 +222,7 @@ def _time_range_match(vobject_item, filter_, child_name):
dtstart = child.dtstart.value
if isinstance(dtstart, datetime) and not dtstart.tzinfo:
dtstart = dtstart.replace(tzinfo=timezone.utc)
if not isinstance(dtstart, datetime):
dtstart_is_datetime = False
# TODO: changing dates to datetimes may be wrong because of tz
@ -240,7 +240,7 @@ def _time_range_match(vobject_item, filter_, child_name):
tzinfo=timezone.utc)
if isinstance(dtend, datetime) and not dtend.tzinfo:
dtend = dtend.replace(tzinfo=timezone.utc)
return start < dtend and end > dtstart
elif duration is not None:
duration = duration.value