Skip to content

Commit

Permalink
qvm-template-postprocess: Make pylint happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
WillyPillow committed Aug 8, 2020
1 parent 8ee0d63 commit 6c873cd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions qubesadmin/tools/qvm_template_postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,15 @@ def import_appmenus(vm, source_dir):
# separated by spaces should be ok as there should be no spaces in the file
# name according to the FreeDesktop spec
with open(os.path.join(source_dir, 'vm-whitelisted-appmenus.list'), 'r') \
as f:
vm.features['default-menu-items'] = ' '.join([x.rstrip() for x in f])
as fd:
vm.features['default-menu-items'] = ' '.join([x.rstrip() for x in fd])
with open(os.path.join(source_dir, 'whitelisted-appmenus.list'), 'r') \
as f:
vm.features['menu-items'] = ' '.join([x.rstrip() for x in f])
as fd:
vm.features['menu-items'] = ' '.join([x.rstrip() for x in fd])
with open(
os.path.join(source_dir, 'netvm-whitelisted-appmenus.list'), 'r') \
as f:
vm.features['netvm-menu-items'] = ' '.join([x.rstrip() for x in f])
as fd:
vm.features['netvm-menu-items'] = ' '.join([x.rstrip() for x in fd])

# TODO: change this to qrexec calls to GUI VM, when GUI VM will be
# implemented
Expand All @@ -185,8 +185,8 @@ def import_appmenus(vm, source_dir):

def parse_template_config(path):
'''Parse template.conf from template package. (KEY=VALUE format)'''
with open(path, 'r') as f:
return dict(line.rstrip('\n').split('=', 1) for line in f)
with open(path, 'r') as fd:
return dict(line.rstrip('\n').split('=', 1) for line in fd)

@asyncio.coroutine
def call_postinstall_service(vm):
Expand Down

0 comments on commit 6c873cd

Please sign in to comment.