Fix syntax to work on Python2.4

The `val if something else something-else` syntax does not work prior to 2.5
reviewable/pr18780/r1
Sundar Raman 12 years ago
parent 310c4b5eff
commit a221c9ed65

6
pip

@ -25,7 +25,11 @@ ENV = None
def _get_full_name(name, version=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(): def _find_pip():

Loading…
Cancel
Save