def render_option(self, selected_choices, option_value, option_label):
    option_value = force_text(option_value)
    other_html = (u' selected="selected"' if (option_value in selected_choices) else '')
    other_html += self.transform_option_html_attrs(option_label)
    data_attr_html = self.get_data_attrs(option_label)
    if data_attr_html:
        other_html += (' ' + data_attr_html)
    option_label = self.transform_option_label(option_label)
    return (u'<option value="%s"%s>%s</option>' % (html.escape(option_value), other_html, option_label))
def render_option(self, selected_choices, option_value, option_label):
    option_value = force_text(option_value)
    other_html = (u' selected="selected"' if (option_value in selected_choices) else )
    other_html += self.transform_option_html_attrs(option_label)
    data_attr_html = self.get_data_attrs(option_label)
    if data_attr_html:
        other_html += (' ' + data_attr_html)
    option_label = self.transform_option_label(option_label)
    return (u'<option value="%s"%s>%s</option>' % (html.escape(option_value), other_html, option_label))