403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/PIL/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/PIL/__pycache__/features.cpython-39.pyc
a

i�a�$�
@s�ddlZddlZddlZddlZddlZddlmZdddddd	�Zd
d�Zdd
�Z	dd�Z
ddddd�Zdd�Zdd�Z
dd�Zdddddd d!d"d#d$�	Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd4d2d3�ZdS)5�N�)�Image)�PIL._imagingZPILLOW_VERSION)zPIL._tkinter_finderZ
tk_version)�PIL._imagingftZfreetype2_version)zPIL._imagingcmsZlittlecms_version)�	PIL._webpZwebpdecoder_version)�pil�tkinter�	freetype2�
littlecms2�webpcCsJ|tvrtd|����t|\}}zt|�WdStyDYdS0dS)z�
    Checks if a module is available.

    :param feature: The module to check for.
    :returns: ``True`` if available, ``False`` otherwise.
    :raises ValueError: If the module is not defined in this version of Pillow.
    zUnknown module TFN)�modules�
ValueError�
__import__�ImportError��feature�module�ver�r�0/usr/lib/python3.9/site-packages/PIL/features.py�check_modulesrcCs8t|�sdSt|\}}|dur$dStt||gd�|�S)z�
    :param feature: The module to check for.
    :returns:
        The loaded version number as a string, or ``None`` if unknown or not available.
    :raises ValueError: If the module is not defined in this version of Pillow.
    N��fromlist)rr�getattrrrrrr�version_module'srcCsdd�tD�S)z4
    :returns: A list of all supported modules.
    cSsg|]}t|�r|�qSr)r��.0�frrr�
<listcomp>=�z)get_supported_modules.<locals>.<listcomp>)rrrrr�get_supported_modules9sr )ZjpegZjpeglib)Zjpeg2kZjp2klib)�zip�zlib)�libtiffr#)�jpg�jpg_2000r"r#cCs4|tvrtd|����t|\}}|dttj�vS)z�
    Checks if a codec is available.

    :param feature: The codec to check for.
    :returns: ``True`` if available, ``False`` otherwise.
    :raises ValueError: If the codec is not defined in this version of Pillow.
    zUnknown codec Z_encoder)�codecsr
�dirr�core)r�codec�librrr�check_codecHsr+cCsLt|�sdSt|\}}ttj|d�}|dkrH|�d�d�d�dS|S)a
    :param feature: The codec to check for.
    :returns:
        The version number as a string, or ``None`` if not available.
        Checked at compile time for ``jpg``, run-time otherwise.
    :raises ValueError: If the codec is not defined in this version of Pillow.
    NZ_versionr#�
rzVersion r)r+r&rrr(�split)rr)r*�versionrrr�
version_codecXsr/cCsdd�tD�S)z3
    :returns: A list of all supported codecs.
    cSsg|]}t|�r|�qSr)r+rrrrrqrz(get_supported_codecs.<locals>.<listcomp>)r&rrrr�get_supported_codecsmsr0)rZ
HAVE_WEBPANIMN)rZHAVE_WEBPMUXN)rZHAVE_TRANSPARENCYN)rZ	HAVE_RAQMZraqm_version)rZHAVE_FRIBIDIZfribidi_version)rZ
HAVE_HARFBUZZZharfbuzz_version)rZHAVE_LIBJPEGTURBOZlibjpeg_turbo_version)rZHAVE_LIBIMAGEQUANTZimagequant_version)rZHAVE_XCBN)	�	webp_anim�webp_mux�transp_webp�raqm�fribidi�harfbuzz�
libjpeg_turbo�
libimagequant�xcbcCsX|tvrtd|����t|\}}}zt|dgd�}t||�WStyRYdS0dS)z�
    Checks if a feature is available.

    :param feature: The feature to check for.
    :returns: ``True`` if available, ``False`` if unavailable, ``None`` if unknown.
    :raises ValueError: If the feature is not defined in this version of Pillow.
    zUnknown feature �PILrN)�featuresr
rrr)rr�flagrZimported_modulerrr�
check_feature�sr=cCs:t|�sdSt|\}}}|dur&dStt||gd�|�S)z�
    :param feature: The feature to check for.
    :returns: The version number as a string, or ``None`` if not available.
    :raises ValueError: If the feature is not defined in this version of Pillow.
    Nr)r=r;rr)rrr<rrrr�version_feature�sr>cCsdd�tD�S)z5
    :returns: A list of all supported features.
    cSsg|]}t|�r|�qSr)r=rrrrr�rz*get_supported_features.<locals>.<listcomp>)r;rrrr�get_supported_features�sr?cCsJ|tvrt|�S|tvr t|�S|tvr0t|�Stjd|�d�dd�dS)z�
    :param feature: A module, codec, or feature name.
    :returns:
        ``True`` if the module, codec, or feature is available,
        ``False`` or ``None`` otherwise.
    zUnknown feature 'z'.�)�
stacklevelF)rrr&r+r;r=�warnings�warn�rrrr�check�srEcCs4|tvrt|�S|tvr t|�S|tvr0t|�SdS)z�
    :param feature:
        The module, codec, or feature to check for.
    :returns:
        The version number as a string, or ``None`` if unknown or not available.
    N)rrr&r/r;r>rDrrrr.�sr.cCs"t�}|�t��|�t��|S)zJ
    :returns: A list of all supported modules, features, and codecs.
    )r �extendr?r0)�retrrr�
get_supported�srHTc	Cs|durtj}t��td|d�tdtj��|d�tj��}td|d�	���|d�|dd�D]}td|�	���|d�qftd|d�td	t
j�tj
���|d�td
t
j�tjj
���|d�td|d�dD]�\}}t|��r�|dk�rtd
��rdtd
�}nt|�}|du�r�|dv}|dk�rLtdd�|�d�D��dk}|�rVdnd}|dk�r�dD],}t|�}	|	du�rh|d|�d|	��7}�qhtd|d|||d�ntd|d|d�q�td|d|d�q�td|d�|�rt�t�}
tj��D]\}}|
|�|��q�ttj�D]�}|�}
|tjv�rD|
�dtj|��}
t|
|d�||
v�rztd �d�t|
|���|d�g}|tjv�r�|�d!�|tj v�r�|�d"�|tj!v�r�|�d#�|tj"v�r�|�d$�|tj#v�r�|�d%�td&�d�|��|d�td|d��qdS)'aG
    Prints information about this installation of Pillow.
    This function can be called with ``python3 -m PIL``.

    :param out:
        The output stream to print to. Defaults to ``sys.stdout`` if ``None``.
    :param supported_formats:
        If ``True``, a list of all supported image file formats will be printed.
    NzD--------------------------------------------------------------------)�filezPillow zPython rrz       zPython modules loaded from zBinary modules loaded from ))rzPIL CORE)rZTKINTER)r	Z	FREETYPE2)r
Z
LITTLECMS2)rZWEBP)r3zWEBP Transparency)r2ZWEBPMUX)r1zWEBP Animation)r$ZJPEG)r%zOPENJPEG (JPEG2000))r"zZLIB (PNG/ZIP))r#ZLIBTIFF)r4zRAQM (Bidirectional Text))r8z#LIBIMAGEQUANT (Quantization method))r9zXCB (X protocol)r$r7zlibjpeg-turbo )rr$r
css|]}t|�VqdS)N)�int)r�xrrr�	<genexpr>rzpilinfo.<locals>.<genexpr>�.)r@�zcompiled forZloadedr4)r5r6z, � z---zsupport ok,z
support okz***zsupport not installedzExtensions: {}�openZsaveZsave_all�decode�encodezFeatures: {})$�sys�stdoutr�init�printr:�__version__r.�
splitlines�strip�os�path�dirname�__file__r(rEr=r>�tupler-�collections�defaultdict�listZ	EXTENSION�items�append�sortedZIDZMIME�format�joinZOPENZSAVEZSAVE_ALLZDECODERSZENCODERS)�outZsupported_formatsZ
py_version�namer�vZversion_static�trZv2�
extensions�ext�i�liner;rrr�pilinfo�s�
��






�




ro)NT)r_rZrSrBr:�rrrrr r&r+r/r0r;r=r>r?rEr.rHrorrrr�<module>sN�	��


Youez - 2016 - github.com/yon3zu
LinuXploit