[elbe-devel] [PATCH 23/75] debianize widgets grid: Fix Pylint
Olivier Dion
dion at linutronix.de
Mon May 25 17:42:16 CEST 2020
87:16: R1705: (no-else-return)
87:51: W0212: (protected-access)
92:16: R1705: (no-else-return)
92:51: W0212: (protected-access)
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/debianize/widgets/grid.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/elbepack/debianize/widgets/grid.py b/elbepack/debianize/widgets/grid.py
index 7460f308..cff32b72 100644
--- a/elbepack/debianize/widgets/grid.py
+++ b/elbepack/debianize/widgets/grid.py
@@ -84,15 +84,15 @@ class Grid(WidgetWrap):
if isinstance(child, Grid):
child.focus_recursive(forward, horizontal)
elif not forward and self._is_first():
+ # pylint: disable=protected-access
if self.parent is not None and not self.parent._is_first():
return self.parent.focus_direction(forward, horizontal)
- else:
- self.focus_direction(forward, horizontal)
+ self.focus_direction(forward, horizontal)
elif forward and self._is_last():
+ # pylint: disable=protected-access
if self.parent is not None and not self.parent._is_last():
return self.parent.focus_direction(forward, horizontal)
- else:
- self.focus_direction(forward, horizontal)
+ self.focus_direction(forward, horizontal)
else:
self.focus_direction(forward, horizontal)
--
2.26.2
More information about the elbe-devel
mailing list