def setClosedAttribute(elementNode, revolutions):
 closedBoolean = evaluate.getEvaluatedBoolean((revolutions <= 1), elementNode, 'closed')
 elementNode.attributes['closed'] = str(closedBoolean).lower()

def setClosedAttribute ( elementNode , revolutions ) : closedBoolean = evaluate . getEvaluatedBoolean ( ( revolutions <= 1 ) , elementNode , 'closed' ) elementNode . attributes [ 'closed' ] = str ( closedBoolean ) . lower ( )
set the closed attribute of the xmlelement .