summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2016-12-18 11:14:47 +0100
committerLucas Hoffmann <l-m-h@web.de>2016-12-18 22:53:10 +0100
commit181161f62fed0dedb07c027bcca7770b3a68fcf8 (patch)
tree84d25d44877203d83b6174eb75e7ddfb349e4426 /alot/ui.py
parent459c4b8ee2c42a0b855486484a4ebad458d53e8a (diff)
Turn methods with no `self` usage into staticmethods
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 3a840082..811f2150 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -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.