From 2164b82c346533b36ec5d43dd6f5bcb3b9c7e7ad Mon Sep 17 00:00:00 2001 From: donoban Date: Fri, 11 Dec 2020 01:01:21 +0100 Subject: [PATCH] Changed filter to list comprehension (avoids pylint warning) --- qubesmanager/qube_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 0edce50..3bcbc20 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -1527,7 +1527,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow): "/var/log/qubes/qrexec." + vm.name + ".log", ]) - logfiles = list(filter(lambda x: path.exists(x), logfiles)) + logfiles = [x for x in logfiles if path.exists(x)] if len(logfiles) > 0: log_dlg = log_dialog.LogDialog(self.qt_app, logfiles)