Ë ‚Ö¦iýY ã ó — d Z ddlZddlZddlZddlZ ddlmZ ddl Z g d¢Zg d¢Zda da G d„ d« Zdd „Zdd „Zdd„Zdd„Zdd „Zd„ Zd„ Z e« d„ Zedk( r e« yy# e$ r dZY ŒVw xY w# e$ r dZ Y Œ^w xY w)aì Guess the MIME type of a file. This module defines two useful functions: guess_type(url, strict=True) -- guess the MIME type and encoding of a URL. guess_extension(type, strict=True) -- guess the extension for a given MIME type. It also contains the following, for tuning the behavior: Data: knownfiles -- list of files to parse inited -- flag set when init() has been called suffix_map -- dictionary mapping suffixes to suffixes encodings_map -- dictionary mapping suffixes to encodings types_map -- dictionary mapping suffixes to types Functions: init([files]) -- parse a list of files, default knownfiles (on Windows, the default values are taken from the registry) read_mime_types(file) -- parse one file, return a dictionary or None é N)Ú _mimetypes_read_windows_registry) Ú knownfilesÚinitedÚ MimeTypesÚ guess_typeÚguess_all_extensionsÚguess_extensionÚadd_typeÚinitÚread_mime_typesÚ suffix_mapÚ encodings_mapÚ types_mapÚcommon_types) z/etc/mime.typesz/etc/httpd/mime.typesz/etc/httpd/conf/mime.typesz/etc/apache/mime.typesz/etc/apache2/mime.typesú$/usr/local/etc/httpd/conf/mime.typesz"/usr/local/lib/netscape/mime.typesr z/usr/local/etc/mime.typesFc ó` — e Zd ZdZdd„Zd d„Zd d„Zd d„Zd d„Zd d„Z d d„Z d d „Zed „ « Z y)r zçMIME-types datastore. This datastore can handle information from mime.types-style files and supports basic determination of MIME type from a filename or URL, and can guess a reasonable extension given a MIME type. c óš — t s t « t j « | _ t j « | _ i i f| _ i i f| _ t j « D ] \ }}| j ||d« Œ t j « D ] \ }}| j ||d« Œ |D ] }| j ||« Œ y ©NTF)r r Ú_encodings_map_defaultÚcopyr Ú_suffix_map_defaultr r Ú types_map_invÚ_types_map_defaultÚitemsr Ú_common_types_defaultÚread)ÚselfÚ filenamesÚstrictÚextÚtypeÚnames ú"/usr/lib64/python3.12/mimetypes.pyÚ__init__zMimeTypes.__init__H s¨ € ÝÜŒFÜ3×8Ñ8Ó:ˆÔÜ-×2Ñ2Ó4ˆŒØ˜b˜ˆŒØ "˜XˆÔÜ-×3Ñ3Ö5‰KˆS�$Ø�M‰M˜$ TÕ*ð 6ä0×6Ñ6Ö8‰KˆS�$Ø�M‰M˜$ UÕ+ð 9ãˆDØ�I‰I�d˜FÕ#ñ ó c ó˜ — |sy|| j | |<