(mimetype, url)
return mimetype
Returns the mimetype; if None is given it tries to guess it
Returns the mimetype; if None is given it tries to guess it
Returns the mimetype ; if None is given it tries to guess it
def get_mimetype(mimetype, url):
    """Returns the mimetype; if None is given it tries to guess it"""

    if not mimetype:
        mimetype, _encoding = mimetypes.guess_type(url)

    return mimetype
def get_mimetype ( mimetype , url ) : if not mimetype : mimetype , _encoding = mimetypes . guess_type ( url ) return mimetype