Changed filter to list comprehension (avoids pylint warning)

This commit is contained in:
donoban 2020-12-11 01:01:21 +01:00
parent df0e4699a0
commit 2164b82c34
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -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)