Remove spaces from empty lines
This commit is contained in:
parent
dfc215b63f
commit
4e8f518cbb
@ -222,7 +222,7 @@ def _time_range_match(vobject_item, filter_, child_name):
|
|||||||
dtstart = child.dtstart.value
|
dtstart = child.dtstart.value
|
||||||
if isinstance(dtstart, datetime) and not dtstart.tzinfo:
|
if isinstance(dtstart, datetime) and not dtstart.tzinfo:
|
||||||
dtstart = dtstart.replace(tzinfo=timezone.utc)
|
dtstart = dtstart.replace(tzinfo=timezone.utc)
|
||||||
|
|
||||||
if not isinstance(dtstart, datetime):
|
if not isinstance(dtstart, datetime):
|
||||||
dtstart_is_datetime = False
|
dtstart_is_datetime = False
|
||||||
# TODO: changing dates to datetimes may be wrong because of tz
|
# 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)
|
tzinfo=timezone.utc)
|
||||||
if isinstance(dtend, datetime) and not dtend.tzinfo:
|
if isinstance(dtend, datetime) and not dtend.tzinfo:
|
||||||
dtend = dtend.replace(tzinfo=timezone.utc)
|
dtend = dtend.replace(tzinfo=timezone.utc)
|
||||||
|
|
||||||
return start < dtend and end > dtstart
|
return start < dtend and end > dtstart
|
||||||
elif duration is not None:
|
elif duration is not None:
|
||||||
duration = duration.value
|
duration = duration.value
|
||||||
|
Loading…
Reference in New Issue
Block a user