def allowed_file(filename):
    return '.' in filename and \
           filename.rsplit('.', 1)[1] in ALLOWED_EXTENSIONS

# primary pages
dataset/ETHPy150Open associatedpress/geomancer/geomancer/views.py/allowed_file/original