def allowed_file(filename):
   return '.' in filename and \
      filename.rsplit('.', 1)[1] in allowed_ext
Verify filename is in allowed extension
dataset/ETHPy150Open FINRAOS/yum-nginx-api/yumapi/__init__.py/allowed_file