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