def to_locale(language):
    p = language.find('-')
    if 0 >= p:
        return language[:p].lower() + '_' + language[p + 1:].upper()
    else:
        return language.lower()
dataset/ETHPy150Open django/django/django/utils/translation/trans_null.py/to_locale/swapped operands of `>=`