uawdijnntqw1x1x1
IP : 18.188.188.152
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
lib64
/
cifs-utils
/
..
/
enchant
/
..
/
python3.6
/
__pycache__
/
mimetypes.cpython-36.opt-2.pyc
/
/
3 \2R�@sddlZddlZddlZddlZyddlZWnek rDdZYnXdddddddd d ddd dg Zdddddddddg Z da daGdd�d�Zd5dd�Z d6dd�Zd7dd�Zd8dd�Zd9dd �Zdd �Zd d!�Ze�ed"k�rddlZd#Zd:d%d&�Zy&ejejd'd�d(d)d*d+g�\ZZWn0ejk �rNZzed'e�WYddZ[XnXd'ZdZxDeD]<\ZZ ed;k�rzed�ned<k�r�dZned=k�r^d'Z�q^WxheD]`Z!e�r�ee!e�Z"e"�s�e#d2e!�ne#e"�n.e e!e�\Z"Z$e"�s�e#d2e!�ne#d3e"d4e$��q�WdS)>�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`eZdZfdfdd�Zddd�Zddd�Zddd �Zdd d�Zddd �Zddd�Z ddd�Z dS)rTcCs�ts t�tj�|_tj�|_iif|_iif|_x"tj�D]\}}|j||d�q<Wx"t j�D]\}}|j||d�q`Wx|D]}|j ||�q�WdS)NTF)rr r�copyrr � types_map_inv�itemsrr�read)�self� filenames�strict�ext�type�name�r�!/usr/lib64/python3.6/mimetypes.py�__init__Bs zMimeTypes.__init__cCs6||j||<|j|j|g�}||kr2|j|�dS)N)r r� setdefault�append)rrrrZextsrrrrPszMimeTypes.add_typecCsltjj|�\}}|dkrz|jd�}|dkr.d S|jdd|�}|dkrR|d|�}n|d|�}d|ksnd|krrd}|dfStj|�\}}x&||jkr�tj||j|�\}}q�W||jkr�|j|} tj|�\}}nd} |jd} || kr�| || fS|j �| k�r| |j �| fS|�r"d| fS|jd } || k�rB| || fS|j �| k�r`| |j �| fSd| fSdS)N�data�,r�;�=�/z text/plainTF)NN) �urllib�parseZ splittype�find� posixpath�splitextrrr �lower)r�urlr�schemeZcommaZsemir�baser�encodingr rrrras@ zMimeTypes.guess_typecCsP|j�}|jdj|g�}|sLx,|jdj|g�D]}||kr2|j|�q2W|S)NTF)r(r�getr)rrr� extensionsrrrrr�szMimeTypes.guess_all_extensionscCs|j||�}|sdS|dS)Nr)r)rrrr.rrrr�s zMimeTypes.guess_extensionc Cs(t|dd��}|j||�WdQRXdS)Nzutf-8)r,)�open�readfp)r�filenamer�fprrrr�szMimeTypes.readc Cs�x�|j�}|sP|j�}x0tt|��D] }||ddkr&||d�=Pq&W|sPq|d|dd�}}x|D]}|j|d||�qlWqWdS)Nr�#��.)�readline�split�range�lenr) rr2r�lineZwords�ir�suffixesZsuffrrrr0�s zMimeTypes.readfpcCs�tsdSdd�}tjtjd���}xz||�D]n}yRtj||��<}|jd�sJw*tj|d�\}}|tjkrfw*|j|||�WdQRXWq*tk r�w*Yq*Xq*WWdQRXdS)NcssLd}xBytj||�}Wntk r,PYnXd|kr<|V|d7}qWdS)Nr�r4)�_winregZEnumKey�EnvironmentError)Zmimedbr;Zctyperrr� enum_types�sz3MimeTypes.read_windows_registry.<locals>.enum_types�r5zContent Type)r>�OpenKeyZHKEY_CLASSES_ROOT� startswithZQueryValueExZREG_SZrr?)rrr@ZhkcrZ subkeynameZsubkeyZmimetypeZdatatyperrr�read_windows_registry�s zMimeTypes.read_windows_registryN)T)T)T)T)T)T)T)�__name__� __module__�__qualname__rrrrrrr0rDrrrrr:s > TcCstdkrt�tj||�S)N)�_dbr r)r)rrrrrscCstdkrt�tj||�S)N)rHr r)rrrrrr&s cCstdkrt�tj||�S)N)rHr r)rrrrrr7scCstdkrt�tj|||�S)N)rHr r)rrrrrrrGscCsndat�}|dkr"tr|j�t}x"|D]}tjj|�r(|j|�q(W|j a |j a |jda|jda|a dS)NTF)rrr>rDr�os�path�isfilerrrr rrH)�files�db�filerrrr Xs cCsNyt|�}Wntk r dSX|�t�}|j|d�|jdSQRXdS)NT)r/�OSErrorrr0r )rN�frMrrrr lsc�CsDddddddd�adddd d �addd d d dddddddddddddddddddddddddd d d!d"d#d#d#d$d%dd&d'd(d(d)d*ddd+d$d,d-d.d.d/d'd'd'd'd0ddddd1d2d3d4d5d2d6dd7d8d9d9d:d9d9dd9d;d<d<d,d=d>d?d@dAdBdCdDdDdEdFdddGdHdIdJdKdBdLdMdNdOdOdPdPdBdQddRdSdTdUdd@dVdWdXdWdYd@dZd@d[d\d]��ad^d_d_d`d`d`dadbdc�adS)dNz.svg.gzz.tar.gzz.tar.bz2z.tar.xz)z.svgzz.tgzz.tazz.tzz.tbz2z.txzZgzip�compressZbzip2Zxz)z.gzz.Zz.bz2z.xzzapplication/octet-streamzapplication/postscriptzaudio/x-aiffzaudio/basiczvideo/x-msvideoz text/plainzapplication/x-bcpiozimage/x-ms-bmpzapplication/x-cdfzapplication/x-netcdfzapplication/x-cpiozapplication/x-cshztext/cssztext/csvzapplication/mswordzapplication/x-dvizmessage/rfc822z text/x-setextz image/gifzapplication/x-gtarzapplication/x-hdfz text/htmlzimage/vnd.microsoft.iconz image/iefz image/jpegzapplication/javascriptzapplication/jsonzapplication/x-latexz video/mpegzapplication/vnd.apple.mpegurlzapplication/x-troff-manzapplication/x-troff-mezapplication/x-mifzvideo/quicktimezvideo/x-sgi-moviez audio/mpegz video/mp4zapplication/x-troff-mszapplication/odazapplication/x-pkcs12zapplication/pkcs7-mimezimage/x-portable-bitmapzapplication/pdfzimage/x-portable-graymapz image/pngzimage/x-portable-anymapzapplication/vnd.ms-powerpointzimage/x-portable-pixmapz text/x-pythonzapplication/x-python-codezaudio/x-pn-realaudiozapplication/x-pn-realaudiozimage/x-cmu-rasterzapplication/xmlzimage/x-rgbzapplication/x-troffz text/richtextztext/x-sgmlzapplication/x-shzapplication/x-sharzapplication/x-wais-sourcezapplication/x-sv4cpiozapplication/x-sv4crcz image/svg+xmlzapplication/x-shockwave-flashzapplication/x-tarzapplication/x-tclzapplication/x-texzapplication/x-texinfoz image/tiffztext/tab-separated-valueszapplication/x-ustarztext/x-vcardzaudio/x-wavz video/webmzimage/x-xbitmapzapplication/vnd.ms-excelzapplication/excelztext/xmlzimage/x-xpixmapzimage/x-xwindowdumpzapplication/zip)�z.az.aiz.aifz.aifcz.aiffz.auz.aviz.batz.bcpioz.binz.bmpz.cz.cdfz.cdfz.cpioz.cshz.cssz.csvz.dllz.docz.dotz.dviz.emlz.epsz.etxz.exez.gifz.gtarz.hz.hdfz.htmz.htmlz.icoz.iefz.jpez.jpegz.jpgz.jsz.jsonz.kshz.latexz.m1vz.m3uz.m3u8z.manz.mez.mhtz.mhtmlz.mifz.mjsz.movz.moviez.mp2z.mp3z.mp4z.mpaz.mpez.mpegz.mpgz.msz.ncz.nwsz.oz.objz.odaz.p12z.p7cz.pbmz.pdfz.pfxz.pgmz.plz.pngz.pnmz.potz.ppaz.ppmz.ppsz.pptz.psz.pwzz.pyz.pycz.pyoz.qtz.raz.ramz.rasz.rdfz.rgbz.roffz.rtxz.sgmz.sgmlz.shz.sharz.sndz.soz.srcz.sv4cpioz.sv4crcz.svgz.swfz.tz.tarz.tclz.texz.texiz.texinfoz.tifz.tiffz.trz.tsvz.txtz.ustarz.vcfz.wavz.webmz.wizz.wsdlz.xbmz.xlbz.xlsz.xlsz.xmlz.xpdlz.xpmz.xslz.xwdz.zipz image/jpgz audio/midiz image/pictzapplication/rtfztext/xul)z.jpgz.midz.midiz.pctz.picz.pictz.rtfz.xul)rrr rrrrr�_default_mime_typesws( rR�__main__a4Usage: mimetypes.py [options] type Options: --help / -h -- print this message and exit --lenient / -l -- additionally search of some common, but non-standard types. --extension / -e -- guess extension instead of type More than one type argument may be given. rAcCs"tt�|rt|�tj|�dS)N)�print�USAGE�sys�exit)�code�msgrrr�usage;srZr4Zhle�helpZlenient� extension�-h�--help�-l� --lenient�-e�--extensionz I don't know anything about typeztype:z encoding:)T)T)T)T)N)rA)r]r^)r_r`)rarb)%rIrVr&Zurllib.parser#�winregr>�ImportError�__all__rrrHrrrrrr r rRrEZgetoptrUrZ�argvZopts�args�errorrYrr\�opt�argZgtypeZguessrTr,rrrr�<module>sz V 3
/home/../lib64/cifs-utils/../enchant/../python3.6/__pycache__/mimetypes.cpython-36.opt-2.pyc