utils: make PEP8 happy

This commit is contained in:
Frédéric Pierret (fepitre) 2019-11-10 10:16:47 +01:00
parent 044d91d73e
commit 2c132d9b83
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -43,7 +43,6 @@ def prepare_choice(widget, holder, propname, choice, default,
filter_function=None, *, filter_function=None, *,
icon_getter=None, allow_internal=None, allow_default=False, icon_getter=None, allow_internal=None, allow_default=False,
allow_none=False, transform=None): allow_none=False, transform=None):
# for newly created vms, set propname to None # for newly created vms, set propname to None
debug( debug(
@ -156,6 +155,7 @@ def prepare_kernel_choice(widget, holder, propname, default, *args, **kwargs):
return prepare_choice( return prepare_choice(
widget, holder, propname, kernels, default, *args, **kwargs) widget, holder, propname, kernels, default, *args, **kwargs)
def prepare_label_choice(widget, holder, propname, default, *args, **kwargs): def prepare_label_choice(widget, holder, propname, default, *args, **kwargs):
try: try:
app = holder.app app = holder.app
@ -247,7 +247,6 @@ def loop_shutdown():
# Bases on the original code by: # Bases on the original code by:
# Copyright (c) 2002-2007 Pascal Varet <p.varet@gmail.com> # Copyright (c) 2002-2007 Pascal Varet <p.varet@gmail.com>
def handle_exception(exc_type, exc_value, exc_traceback): def handle_exception(exc_type, exc_value, exc_traceback):
filename, line, _, _ = traceback.extract_tb(exc_traceback).pop() filename, line, _, _ = traceback.extract_tb(exc_traceback).pop()
filename = os.path.basename(filename) filename = os.path.basename(filename)
error = "%s: %s" % (exc_type.__name__, exc_value) error = "%s: %s" % (exc_type.__name__, exc_value)