Fix coding style
This commit is contained in:
parent
c294477aee
commit
fd3b0718fd
@ -126,7 +126,7 @@ def _date_to_datetime(date_):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
if not isinstance(date_, datetime):
|
if not isinstance(date_, datetime):
|
||||||
date_ = datetime.combine(date_, datetime.min.time())
|
date_ = datetime.combine(date_, datetime.min.time())
|
||||||
if not date_.tzinfo:
|
if not date_.tzinfo:
|
||||||
date_ = date_.replace(tzinfo=timezone.utc)
|
date_ = date_.replace(tzinfo=timezone.utc)
|
||||||
return date_
|
return date_
|
||||||
@ -270,7 +270,7 @@ def _time_range_match(vobject_item, filter_, child_name):
|
|||||||
if start < dtstart + duration and end > dtstart:
|
if start < dtstart + duration and end > dtstart:
|
||||||
return True
|
return True
|
||||||
elif start <= dtstart and end > dtstart:
|
elif start <= dtstart and end > dtstart:
|
||||||
# Line 3
|
# Line 3
|
||||||
return True
|
return True
|
||||||
elif dtstart_is_datetime:
|
elif dtstart_is_datetime:
|
||||||
# Line 4
|
# Line 4
|
||||||
|
Loading…
Reference in New Issue
Block a user