Changed filter to list comprehension (avoids pylint warning)
This commit is contained in:
parent
df0e4699a0
commit
2164b82c34
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user