utils: make PEP8 happy
This commit is contained in:
parent
044d91d73e
commit
2c132d9b83
@ -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 <p.varet@gmail.com>
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user