diff --git a/apport/report.py b/apport/report.py index c828c8b63..d3a0046f2 100644 --- a/apport/report.py +++ b/apport/report.py @@ -685,7 +685,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