def translate_if(compiler, if_): return python_ast.IfExp( test=compiler.translate(if_.condition), body=compiler.translate(if_.consequence), orelse=compiler.translate(if_.alternative) )