From 01efd465996fab80487da83711c5efe2eebd7c31 Mon Sep 17 00:00:00 2001 From: Sundar Raman Date: Thu, 9 Aug 2012 18:09:18 -0400 Subject: [PATCH] Further syntax fix work on Python2.4 The `val if something else something-else` syntax does not work prior to 2.5. --- pip | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pip b/pip index 2e75cbb69e6..162e3d08a17 100755 --- a/pip +++ b/pip @@ -175,7 +175,10 @@ def main(): (not installed and state == 'present')) if changed: - full_name = _get_full_name(name, version) if state == 'present' else name + if state == 'present': + full_name = _get_full_name(name, version) + else: + full_name = name cmd = '%s %s %s' % (PIP, command_map[state], full_name)