From 2c132d9b831d9142197c10f3ef6db31f3026dc13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Sun, 10 Nov 2019 10:16:47 +0100 Subject: [PATCH] utils: make PEP8 happy --- qubesmanager/utils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qubesmanager/utils.py b/qubesmanager/utils.py index d6a38de..11b7cf1 100644 --- a/qubesmanager/utils.py +++ b/qubesmanager/utils.py @@ -43,7 +43,6 @@ def prepare_choice(widget, holder, propname, choice, default, filter_function=None, *, icon_getter=None, allow_internal=None, allow_default=False, allow_none=False, transform=None): - # for newly created vms, set propname to None debug( @@ -156,6 +155,7 @@ def prepare_kernel_choice(widget, holder, propname, default, *args, **kwargs): return prepare_choice( widget, holder, propname, kernels, default, *args, **kwargs) + def prepare_label_choice(widget, holder, propname, default, *args, **kwargs): try: app = holder.app @@ -247,7 +247,6 @@ def loop_shutdown(): # Bases on the original code by: # Copyright (c) 2002-2007 Pascal Varet def handle_exception(exc_type, exc_value, exc_traceback): - filename, line, _, _ = traceback.extract_tb(exc_traceback).pop() filename = os.path.basename(filename) error = "%s: %s" % (exc_type.__name__, exc_value) @@ -269,8 +268,8 @@ def handle_exception(exc_type, exc_value, exc_traceback): "ManagerUtils", "Houston, we have a problem...")) msg_box.setText(QtCore.QCoreApplication.translate( "ManagerUtils", "Whoops. A critical error has occured. " - "This is most likely a bug in Qubes Manager.

" - "{0}
at line {1}
of file " + "This is most likely a bug in Qubes Manager.

" + "{0}
at line {1}
of file " "{2}.

").format(error, line, filename)) msg_box.exec_()