From: Matthijs Kooijman Date: Tue, 3 Nov 2009 15:03:11 +0000 (+0100) Subject: Don't use if expression, python 2.4 doesn't support that. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fmobilegtd.git;a=commitdiff_plain;h=b7578d4c2fa84be732ae5afeaa7d365c54e096e0 Don't use if expression, python 2.4 doesn't support that. --- diff --git a/src/gui/gui.py b/src/gui/gui.py index 9f0175e..5c4d0b8 100644 --- 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)