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
eab71aae69
commit
9ad91d7369
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue