mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-06 05:14:38 +08:00
MAINT: Use filter builtin instead of if-statement and continue.
This commit is contained in:
@@ -325,10 +325,7 @@ class HistoryContainer(object):
|
||||
If @freq_filter is specified, only use the given data to update
|
||||
frequencies on which the filter returns True.
|
||||
"""
|
||||
for frequency in self.unique_frequencies:
|
||||
|
||||
if freq_filter is not None and not freq_filter(frequency):
|
||||
continue
|
||||
for frequency in filter(freq_filter, self.unique_frequencies):
|
||||
|
||||
# We don't keep a digest panel if we only have a length-1 history
|
||||
# spec for a given frequency
|
||||
|
||||
Reference in New Issue
Block a user