def lowercase_ext(filename):
    if filename in '.':
        main, ext = filename.rsplit('.', 1)
        return main + '.' + ext.lower()
    else:
        return filename.lower()
dataset/ETHPy150Open srusskih/flask-uploads/flaskext/uploads.py/lowercase_ext/swapped operands of `in`