#NEWLINE# def is_accepted_type( mimetype ) : #NEWLINE# #INDENT# '\n    Returns ``True`` if the mimetype starts with one of the\n    :data:`ACCEPTED_MIMETYPE_PREFIXES` or is an\n    :data:`ACCEPTED_APPLICATION_MIMETYPE`.\n\n    ' #NEWLINE# return ( any ( ( mimetype . startswith ( prefix ) for prefix in ACCEPTED_MIMETYPE_PREFIXES ) ) or ( mimetype in ACCEPTED_APPLICATION_MIMETYPES ) )