MAINT: Use filter builtin instead of if-statement and continue.

This commit is contained in:
Scott Sanderson
2014-09-22 11:56:52 -04:00
parent 97e4e5e94d
commit c477680ca3
+1 -4
View File
@@ -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