projects
/
matthijs
/
upstream
/
mobilegtd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9feabb8
)
Don't use if expression, python 2.4 doesn't support that.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 3 Nov 2009 15:03:11 +0000
(16:03 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 3 Nov 2009 15:03:11 +0000
(16:03 +0100)
src/gui/gui.py
patch
|
blob
|
history
diff --git
a/src/gui/gui.py
b/src/gui/gui.py
index 9f0175e66ed7761a17e4f25bc405ecaba5e41494..5c4d0b8ee7e221ad26b087909f27ff64091dd20e 100644
(file)
--- a/
src/gui/gui.py
+++ b/
src/gui/gui.py
@@
-173,7
+173,10
@@
class View(object):
# Two helper functions
def shortcut_prefix(key_name):
short = key_shortname(key_name)
- return '[%s]' % short if short else ' '
+ if short:
+ return '[%s]' % short
+ else:
+ return ' '
def do_entry((text, callback, key_name)):
key = get_key(key_name)