projects
/
matthijs
/
upstream
/
mobilegtd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use if expression, python 2.4 doesn't support that.
[matthijs/upstream/mobilegtd.git]
/
src
/
gui
/
gui.py
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)
# 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)
def do_entry((text, callback, key_name)):
key = get_key(key_name)