Skip to content

Commit

Permalink
Split up list comprehension for readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hultner committed Sep 6, 2021
1 parent 14afda6 commit 8441aff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion icalevents/icalparser.py
Expand Up @@ -408,7 +408,10 @@ def parse_events(content, start=None, end=None, default_span=timedelta(days=7)):
if exdate not in exceptions:
found.append(e)
# Filter out all events that are moved as indicated by the recurrence-id prop
return [event for event in found if e.sequence is None or not (event.uid, event.start, e.sequence) in recurrence_ids]
return [
event for event in found
if e.sequence is None or not (event.uid, event.start, e.sequence) in recurrence_ids
]


def parse_rrule(component, tz=UTC):
Expand Down

0 comments on commit 8441aff

Please sign in to comment.