⚝
One Hat Cyber Team
⚝
Your IP:
18.219.195.35
Server IP:
162.254.39.145
Server:
Linux premium289.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
__pycache__
/
View File Name :
mimetypes.cpython-37.opt-1.pyc
B � f�S � @ s d Z ddlZddlZddlZddlZyddlZW n ek rH dZY nX ddddddd d ddd ddg Z dddddddddg Z dadaG dd� d�Z d3dd�Zd4dd�Zd5dd�Zd6dd �Zd7dd �Zd d� Zd!d"� Ze� ed#k�rddlZd$Zd8d&d'�Zy&e�ejd(d� d)d*d+d,g�\ZZW n0 ejk �rR Z zed(e� W ddZ[X Y nX d(ZdZxDeD ]<\Z Z!e d-k�r~ed� ne d.k�r�dZne d/k�rbd(Z�qbW xheD ]`Z"e�r�ee"e�Z#e#�s�e$d0e"� ne$e#� n.ee"e�\Z#Z%e#�s�e$d0e"� ne$d1e#d2e%� �q�W dS )9a� 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� knownfiles�inited� MimeTypes� guess_type�guess_all_extensions�guess_extension�add_type�init�read_mime_types� suffix_map� encodings_map� types_map�common_typesz/etc/mime.typesz/etc/httpd/mime.typesz/etc/httpd/conf/mime.typesz/etc/apache/mime.typesz/etc/apache2/mime.typesz$/usr/local/etc/httpd/conf/mime.typesz"/usr/local/lib/netscape/mime.typesz/usr/local/etc/mime.typesFc @ s` e Zd ZdZddd�Zddd�Zddd �Zdd d�Zddd �Zddd�Z ddd�Z ddd�ZdS )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. � Tc C s� t s t� t�� | _t�� | _i i f| _i i f| _x"t � � D ]\}}| �||d� q<W x"t� � D ]\}}| �||d� q`W x|D ]}| � ||� q�W d S )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�namer r �./opt/alt/python37/lib64/python3.7/mimetypes.py�__init__B s zMimeTypes.__init__c C s6 || j | |<