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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user