def init_mimedb():
    """Initialize the internal MIME database."""
    global mimedb
    try:
        mimedb = mimetypes.MimeTypes(strict=False)
    except Exception as msg:
        log_error("could not initialize MIME database: %s" % msg)
        return
    add_mimedb_data(mimedb)
def init_mimedb ( ) : global mimedb try : mimedb = mimetypes . MimeTypes ( strict = False ) except Exception as msg : log_error ( "could not initialize MIME database: %s" % msg ) return add_mimedb_data ( mimedb )
Initialize the internal MIME database.