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:
parent
310c4b5eff
commit
a221c9ed65
1 changed files with 5 additions and 1 deletions
6
pip
6
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():
|
||||
|
|
Loading…
Reference in a new issue