def parseCondition(section): return ( None, None ) if not section.has_key('condition') else expressions.parseExpression( section['condition'].asString)
def parseCondition(section): if not section.has_key('condition'): return (None, None) else: return expressions.parseExpression(section['condition'].asString)