From 9051aff15a9c430a7dbcd28dfc1fe1ae0a1ed50c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Sun, 8 Mar 2020 10:27:25 +0100 Subject: [PATCH] audio/gui: use simply vm.tags instead of list() --- qubes/ext/audio.py | 2 +- qubes/ext/gui.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/ext/audio.py b/qubes/ext/audio.py index c3ece983..f4b13308 100644 --- a/qubes/ext/audio.py +++ b/qubes/ext/audio.py @@ -44,7 +44,7 @@ class AUDIO(qubes.ext.Extension): @qubes.ext.handler('domain-init', 'domain-load') def on_domain_init_load(self, vm, event): if getattr(vm, 'audiovm', None): - if 'audiovm-' + vm.audiovm.name not in list(vm.tags): + if 'audiovm-' + vm.audiovm.name not in vm.tags: self.on_property_set(vm, event, name='audiovm', newvalue=vm.audiovm) diff --git a/qubes/ext/gui.py b/qubes/ext/gui.py index d5292969..e542a360 100644 --- a/qubes/ext/gui.py +++ b/qubes/ext/gui.py @@ -52,7 +52,7 @@ class GUI(qubes.ext.Extension): @qubes.ext.handler('domain-init', 'domain-load') def on_domain_init_load(self, vm, event): if getattr(vm, 'guivm', None): - if 'guivm-' + vm.guivm.name not in list(vm.tags): + if 'guivm-' + vm.guivm.name not in vm.tags: self.on_property_set(vm, event, name='guivm', newvalue=vm.guivm) # property-del <=> property-reset-to-default