From 51d97b482c8e97441c2b4f6afba6dad234776896 Mon Sep 17 00:00:00 2001 From: Ryan Harper Date: Thu, 24 May 2018 14:03:55 -0500 Subject: [PATCH] pep8 fixes for subiquity/ui/mount.py --- subiquity/ui/mount.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/subiquity/ui/mount.py b/subiquity/ui/mount.py index deed89bf..74342ccd 100644 --- a/subiquity/ui/mount.py +++ b/subiquity/ui/mount.py @@ -35,6 +35,7 @@ class _MountEditor(StringEditor): OTHER = object() LEAVE_UNMOUNTED = object() + class MountSelector(WidgetWrap): def __init__(self, mountpoint_to_devpath_mapping): opts = [] @@ -47,7 +48,7 @@ class MountSelector(WidgetWrap): first_opt = i opts.append((mnt, True, mnt)) else: - opts.append(("%-*s (%s)"%(max_len, mnt, devpath), False)) + opts.append(("%-*s (%s)" % (max_len, mnt, devpath), False)) if first_opt is None: first_opt = len(opts) opts.append((_('other'), True, OTHER)) @@ -64,14 +65,16 @@ class MountSelector(WidgetWrap): def _showhide_other(self, show): if show and not self._other_showing: - self._w.contents.append((Padding(Columns([(1, Text("/")), self._other]), left=4), self._w.options('pack'))) + self._w.contents.append( + (Padding(Columns([(1, Text("/")), self._other]), left=4), + self._w.options('pack'))) self._other_showing = True elif not show and self._other_showing: del self._w.contents[-1] self._other_showing = False def _select_mount(self, sender, value): - self._showhide_other(value==OTHER) + self._showhide_other(value == OTHER) if value == OTHER: self._w.focus_position = 1