From 027abd8ac3ca7921f2e24a9708a0bf122cd87c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Fri, 20 Jul 2018 00:25:27 +0200 Subject: [PATCH] Pylint corrections Pylint 2.0 was complaining. Cosmetic fixes to make it stop. --- qubesmanager/restore.py | 3 ++- test-packages/qubesadmin/utils.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/qubesmanager/restore.py b/qubesmanager/restore.py index b36ec52..18e628c 100644 --- a/qubesmanager/restore.py +++ b/qubesmanager/restore.py @@ -134,6 +134,7 @@ class RestoreVMsWindow(ui_restoredlg.Ui_Restore, QtGui.QWizard): if self.verify_only.isChecked(): self.backup_restore.options.verify_only = True + # pylint: disable=assignment-from-no-return self.vms_to_restore = self.backup_restore.get_restore_info() for vmname in self.vms_to_restore: @@ -182,7 +183,7 @@ class RestoreVMsWindow(ui_restoredlg.Ui_Restore, QtGui.QWizard): self.__fill_vms_list__() elif self.currentPage() is self.confirm_page: - + # pylint: disable=assignment-from-no-return self.vms_to_restore = self.backup_restore.get_restore_info() for i in range(self.select_vms_widget.available_list.count()): diff --git a/test-packages/qubesadmin/utils.py b/test-packages/qubesadmin/utils.py index 6915104..bd109e0 100644 --- a/test-packages/qubesadmin/utils.py +++ b/test-packages/qubesadmin/utils.py @@ -8,3 +8,6 @@ def updates_vms_status(*args, **kwargs): def size_to_human(*args, **kwargs): return args[0] + +def vm_dependencies(*args): + return args[0]