diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2016-12-18 11:14:47 +0100 |
---|---|---|
committer | Lucas Hoffmann <l-m-h@web.de> | 2016-12-18 22:53:10 +0100 |
commit | 181161f62fed0dedb07c027bcca7770b3a68fcf8 (patch) | |
tree | 84d25d44877203d83b6174eb75e7ddfb349e4426 /alot/ui.py | |
parent | 459c4b8ee2c42a0b855486484a4ebad458d53e8a (diff) |
Turn methods with no `self` usage into staticmethods
Diffstat (limited to 'alot/ui.py')
-rw-r--r-- | alot/ui.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -242,7 +242,8 @@ class UI(object): d.addErrback(errorHandler) return d - def _unhandeled_input(self, key): + @staticmethod + def _unhandeled_input(key): """ Called by :class:`urwid.MainLoop` if a keypress was passed to the root widget by `self._input_filter` but is not handled in any widget. We @@ -329,7 +330,8 @@ class UI(object): self._passall = True return d # return deferred - def exit(self): + @staticmethod + def exit(): """ shuts down user interface without cleaning up. Use a :class:`alot.commands.globals.ExitCommand` for a clean shutdown. |