diff options
author | nfnty <git@nfnty.se> | 2016-12-24 06:34:42 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2017-01-17 05:59:03 +0100 |
commit | 62a776bbd80408c110e2d536ae406420c47f6bb1 (patch) | |
tree | d07c0dc8192b4f2619a37eadd274f25991c37c98 /ranger | |
parent | c60f4c1b7e9d4c86c536b1d1e511f31ed4dde250 (diff) | |
download | ranger-62a776bbd80408c110e2d536ae406420c47f6bb1.tar.gz |
linting: `ranger.gui.curses_shortcuts.CursesShortcuts`: Init all attributes
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/curses_shortcuts.py | 3 | ||||
-rw-r--r-- | ranger/gui/displayable.py | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py index 398a9711..25a9d947 100644 --- a/ranger/gui/curses_shortcuts.py +++ b/ranger/gui/curses_shortcuts.py @@ -28,6 +28,9 @@ class CursesShortcuts(SettingsAware): addstr(*args) -- failsafe version of self.win.addstr(*args) """ + def __init__(self): + self.win = None + def addstr(self, *args): y, x = self.win.getyx() diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py index 99d119aa..8c298440 100644 --- a/ranger/gui/displayable.py +++ b/ranger/gui/displayable.py @@ -43,8 +43,10 @@ class Displayable( # pylint: disable=too-many-instance-attributes settings, fm -- inherited shared variables """ - def __init__(self, win, env=None, fm=None, settings=None): + def __init__(self, win, # pylint: disable=super-init-not-called + env=None, fm=None, settings=None): from ranger.gui.ui import UI + if env is not None: self.env = env if fm is not None: |