From a221c9ed65295747ad21fe1504c6f063a60f380f Mon Sep 17 00:00:00 2001 From: Sundar Raman Date: Thu, 9 Aug 2012 17:54:29 -0400 Subject: [PATCH] Fix syntax to work on Python2.4 The `val if something else something-else` syntax does not work prior to 2.5 --- pip | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pip b/pip index 62cfa7b5926..2e75cbb69e6 100755 --- a/pip +++ b/pip @@ -25,7 +25,11 @@ ENV = None def _get_full_name(name, version=None): - return name if version is None else name + '==' + version + if version is None: + resp = name + else: + resp = name + '==' + version + return resp def _find_pip():