From 43786e14781dfd0c1476a5f4bb1c0159aae1b7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Thu, 27 Feb 2020 14:17:42 +0100 Subject: [PATCH] Make pylint happy - Drop unused 'asyncio' - Drop useless 'else' after return --- qubes/ext/gui.py | 2 -- qubes/vm/qubesvm.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/qubes/ext/gui.py b/qubes/ext/gui.py index 0899fa44..d5292969 100644 --- a/qubes/ext/gui.py +++ b/qubes/ext/gui.py @@ -21,8 +21,6 @@ # License along with this library; if not, see . # -import asyncio - import qubes.config import qubes.ext diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index 3419a0bd..fbe8d6c5 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -692,8 +692,8 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM): try: if self.is_running(): return self.libvirt_domain.ID() - else: - return -1 + + return -1 except libvirt.libvirtError as e: if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN: return -1