#NEWLINE# @ classmethod #NEWLINE# def render_optgroup( cls , value , label , mixed ) : #NEWLINE# #INDENT# children = [ ] #NEWLINE# for ( item_value , item_label ) in label : #NEWLINE# #INDENT# item_html = cls . render_option ( item_value , item_label , mixed ) #NEWLINE# children . append ( item_html ) #NEWLINE# #UNINDENT# html = '<optgroup label="%s">%s</optgroup>' #NEWLINE# data = ( escape ( six . text_type ( value ) ) , '\n' . join ( children ) ) #NEWLINE# return HTMLString ( ( html % cls ) )