summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-12-22 14:38:48 -0800
committerDylan Baker <dylan@pnwbakers.com>2016-12-27 12:52:44 -0800
commit08dda117857f9e472e9ae5cdac035e5ee42dfb0a (patch)
treec57ca002212fba6e8ee2c00984e9d66ed72c4654 /alot/ui.py
parentb9d102d084b13d3498beb768707dae9b01eb02a4 (diff)
ui: Use xrange instead of range
They are the same, except xrange returns an iterator instead of a list.
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 954f4557..62592303 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -308,7 +308,7 @@ class UI(object):
edit_text=text, history=history,
on_error=cerror)
- for _ in range(tab): # hit some tabs
+ for _ in xrange(tab): # hit some tabs
editpart.keypress((0,), 'tab')
# build promptwidget