def transform_option_label(self, option_label):
    if ((not isinstance(option_label, (six.string_types, Promise))) and callable(self.transform)):
        option_label = self.transform(option_label)
    return html.conditional_escape(force_text(option_label))
def transform_option_label(self, option_label):
    if ((not isinstance(option_label, (six.string_types, Promise))) and callable(self.transform)):
        option_label = self.transform(option_label)
    return html.conditional_escape(force_text(option_label))