summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-05 21:24:14 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-05 21:24:14 +0100
commit3aa7307a32bd6b2dec3002afc5e07f4a0e8c4587 (patch)
treed0f274ea66cf4f29a3c48a19020ca1eb6a381d42 /alot
parent10835267d8620a8dd493dc0250ea20ea089bd1c7 (diff)
cleanup
Diffstat (limited to 'alot')
-rw-r--r--alot/ui.py3
-rw-r--r--alot/widgets.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 38a6d14c..a087fd2c 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -61,7 +61,6 @@ class InputWrap(urwid.WidgetWrap):
return self._w.keypress(size, key)
-
class UI(object):
buffers = []
current_buffer = None
@@ -101,7 +100,7 @@ class UI(object):
self.logger.debug('unhandeled input: %s' % key)
def keypress(self, key):
- self.mainloop.widget.keypress((150,20), key, interpret=False)
+ self.mainloop.widget.keypress((150, 20), key, interpret=False)
def prompt(self, prefix='>', text=u'', completer=None, tab=0, history=[]):
"""prompt for text input
diff --git a/alot/widgets.py b/alot/widgets.py
index b405a435..7bb250fe 100644
--- a/alot/widgets.py
+++ b/alot/widgets.py
@@ -212,7 +212,7 @@ class CompleteEdit(urwid.Edit):
def keypress(self, size, key):
cmd = command_map[key]
# if we tabcomplete
- logging.debug((key,cmd))
+ logging.debug((key, cmd))
if cmd in ['next selectable', 'prev selectable'] and self.completer:
# if not already in completion mode
if not self.completions: