Fix syntax to work on Python2.4

The `val if something else something-else` syntax does not work prior to 2.5
This commit is contained in:
Sundar Raman 2012-08-09 17:54:29 -04:00
parent eab71aae69
commit 9ad91d7369

View file

@ -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():