Commit fd6b4c22 by Bernhard Weitzhofer

"gem"-module: replace python 2.5 language feature

replace conditional expression with python 2.4-compatible if/else
statements
parent b066e9c1
...@@ -130,7 +130,10 @@ def install(module): ...@@ -130,7 +130,10 @@ def install(module):
return return
ver = get_rubygems_version(module) 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 = [ module.get_bin_path('gem', True) ]
cmd.append('install') cmd.append('install')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment