diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-08-25 19:31:27 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-08-25 19:31:27 +0100 |
commit | 60e6b0de6cadca9dbee017eb962a99f36c3f6900 (patch) | |
tree | e46f7ae5760043a2ddea615c60e7b062b519a50f /alot | |
parent | b3001880b8b2427d7f790acc6d540d40b35d2c25 (diff) |
pep8 fixes
Diffstat (limited to 'alot')
-rw-r--r-- | alot/buffer.py | 3 | ||||
-rw-r--r-- | alot/ui.py | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/alot/buffer.py b/alot/buffer.py index 553648b4..eb476530 100644 --- a/alot/buffer.py +++ b/alot/buffer.py @@ -124,7 +124,8 @@ class EnvelopeBuffer(Buffer): for part in self.mail.walk(): if not part.is_multipart(): if part.get_content_maintype() != 'text': - lines.append(widgets.AttachmentWidget(part, selectable=False)) + lines.append(widgets.AttachmentWidget(part, + selectable=False)) self.attachment_wgt = urwid.Pile(lines) displayed_widgets.append(self.attachment_wgt) @@ -77,7 +77,7 @@ class UI: def keypress(self, key): self.logger.debug('unhandeled input: %s' % key) - def prompt(self, prefix='>', text=u'', completer=None, tab=0 ,history=[]): + def prompt(self, prefix='>', text=u'', completer=None, tab=0, history=[]): """prompt for text input :param prefix: text to print before the input field @@ -131,7 +131,7 @@ class UI: if history: if historypos == None: history.append(editpart.get_edit_text()) - historypos = len(history)-1 + historypos = len(history) - 1 if key == 'cursor up': historypos = (historypos - 1) % len(history) else: |