def allowed_file(filename):
    return '.' in filename and filename.rsplit('.', 1)[1] in ALLOWED_AVATAR_EXTENSIONS
dataset/ETHPy150Open codelucas/flask_reddit/flask_reddit/utils.py/allowed_file/original