"gem"-module: replace python 2.5 language feature

replace conditional expression with python 2.4-compatible if/else
statements
This commit is contained in:
Bernhard Weitzhofer 2013-03-26 11:45:47 +01:00
parent e9f693fa00
commit 413f04d227

5
gem
View file

@ -130,7 +130,10 @@ def install(module):
return
ver = get_rubygems_version(module)
major = ver[0] if ver else None
if ver:
major = ver[0]
else:
major = None
cmd = [ module.get_bin_path('gem', True) ]
cmd.append('install')