diff --git a/apport/report.py b/apport/report.py index f349f2ca1..e5609f3a6 100644 --- a/apport/report.py +++ b/apport/report.py @@ -670,7 +670,7 @@ def _check_interpreted(self) -> None: # check if we consider ExecutablePath an interpreter; we have to do # this, otherwise 'gedit /tmp/foo.txt' would be detected as interpreted # script as well - if not any(filter(lambda i: fnmatch.fnmatch(exebasename, i), interpreters)): + if not any(fnmatch.fnmatch(exebasename, i) for i in interpreters): return # first, determine process name