Fix the nullfilter for mac process lists.

This commit is contained in:
Mike Auty
2019-03-03 14:57:34 +00:00
parent ebadd4fbd6
commit cdbe0306f0
+1 -4
View File
@@ -44,10 +44,7 @@ class PsList(interfaces_plugins.PluginInterface):
@classmethod
def create_filter(cls, pid_list: List[int] = None) -> Callable[[int], bool]:
def nullfilter():
return False
filter_func = nullfilter
filter_func = lambda _: False
# FIXME: mypy #4973 or #2608
pid_list = pid_list or []
filter_list = [x for x in pid_list if x is not None]