Skip to content

Commit

Permalink
fix(python3): Remove itertools.ifilter use (#28822)
Browse files Browse the repository at this point in the history
  • Loading branch information
beezz authored and vuluongj20 committed Sep 30, 2021
1 parent b462301 commit c41420b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/similarity/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_application_chunks(exception):
"""
return map(
lambda in_app__frames: list(in_app__frames[1]),
itertools.ifilter(
filter(
lambda in_app__frames: in_app__frames[0],
itertools.groupby(exception.stacktrace.frames, key=lambda frame: frame.in_app),
),
Expand Down

0 comments on commit c41420b

Please sign in to comment.