global_settings: make PEP8 happy

This commit is contained in:
Frédéric Pierret (fepitre) 2019-11-11 17:05:02 +01:00
parent 2c132d9b83
commit 0bacf37994
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -32,6 +32,7 @@ from configparser import ConfigParser
qmemman_config_path = '/etc/qubes/qmemman.conf'
def _run_qrexec_repo(service, arg=''):
# Fake up a "qrexec call" to dom0 because dom0 can't qrexec to itself yet
cmd = '/etc/qubes-rpc/' + service
@ -198,8 +199,8 @@ class GlobalSettingsWindow(ui_globalsettingsdlg.Ui_GlobalSettings,
current_min_vm_mem = self.min_vm_mem.value()
current_dom0_mem_boost = self.dom0_mem_boost.value()
if current_min_vm_mem*1024*1024 != self.vm_min_mem_val \
or current_dom0_mem_boost*1024*1024 != self.dom0_mem_boost_val:
if current_min_vm_mem * 1024 * 1024 != self.vm_min_mem_val or \
current_dom0_mem_boost * 1024 * 1024 != self.dom0_mem_boost_val:
current_min_vm_mem = str(current_min_vm_mem) + 'MiB'
current_dom0_mem_boost = str(current_dom0_mem_boost) + 'MiB'
@ -255,7 +256,8 @@ class GlobalSettingsWindow(ui_globalsettingsdlg.Ui_GlobalSettings,
def __init_updates__(self):
try:
self.updates_dom0_val = bool(self.qvm_collection.domains[
'dom0'].features['service.qubes-update-check'])
'dom0'].features[
'service.qubes-update-check'])
except KeyError:
self.updates_dom0_val = True