403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/setuptools/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/setuptools/tests/__pycache__/test_packageindex.cpython-313.pyc
�

�hG"����SSKrSSKrSSKrSSKrSSKJr SSKrSSK	r
SSKr"SS5r
"SS5r"SS5r\R R#S	5S
5rg)�N)�cleandocc�b�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrg)�TestPackageIndex�c���SnUS-
nSR5R"S0[5D6n[RR
R
U5(deg)Nz&http://other_url?:action=show_md5&z'digest=0123456789abcdef0123456789abcdefz�
            <a href="http://some_url">Name</a>
            (<a title="MD5 hash"
            href="{hash_url}">md5</a>)
        �)�lstrip�format�locals�
setuptools�
package_index�PYPI_MD5�match)�self�hash_url�docs   �D/usr/lib/python3/dist-packages/setuptools/tests/test_packageindex.py�
test_regex�TestPackageIndex.test_regexsa��;���=�=���
�F�H�V�V�	�(�%�h�	(��
�'�'�0�0�6�6�s�;�;�;�;�c�L�[RR5nSn[R"[
[R"U5S9 URU5n[U[RR5(deSSS5 g!,(df   g=f)Nz.http://127.0.0.1:0/nonesuch/test_package_index�r�
rr
�PackageIndex�pytest�raises�	Exception�re�escape�open_url�
isinstance�urllib�error�	HTTPError�r�index�url�vs    r�test_bad_url_bad_port�&TestPackageIndex.test_bad_url_bad_portsh���(�(�5�5�7��>��
�]�]�9�B�I�I�c�N�
;����s�#�A��a����!7�!7�8�8�8�8�<�
;�
;�s�=B�
B#c�J�[RRSS9nSn[R"[
[R"U5S9 URU5n[U[RR5(deSSS5 g!,(df   g=f)N�zwww.example.com��hostszMurl:%20https://svn.plone.org/svn/collective/inquant.contentmirror.plone/trunkrrr%s    r�test_bad_url_typo�"TestPackageIndex.test_bad_url_typo sp���(�(�5�5�<P�5�Q��]��
�]�]�9�B�I�I�c�N�
;����s�#�A��a����!7�!7�8�8�8�8�<�
;�
;�s�
=B�
B"c���[RRSS9nSnX!lSn[R
"[SS9 URU5 SSS5 g!,(df   g=f)Nr,r-c�@�[RRS5e)N�line)�http�client�
BadStatusLine)�argss r�_urlopen�?TestPackageIndex.test_bad_url_bad_status_line.<locals>._urlopen/s���+�+�+�+�F�3�3rzhttp://example.comr3r)rr
r�openerrrrr )rr&r8r's    r�test_bad_url_bad_status_line�-TestPackageIndex.test_bad_url_bad_status_line,sS���(�(�5�5�<P�5�Q��	4� ��"��
�]�]�9�G�
4��N�N�3��5�
4�
4�s�A�
A+c��[RRSS9nSnURU5 [S5e![R
Ra)n[U5nSU;dSU;dSU;deSnAgSnAff=f)	z?
A bad URL with a double scheme should raise a DistutilsError.
r,r-z2http://http://svn.pythonpaste.org/Paste/wphp/trunkznonnumeric portzgetaddrinfo failedzName or service not knownNz
Did not raise)	rr
rr �	distutils�errors�DistutilsError�str�RuntimeError)rr&r'r#�msgs     r�test_bad_url_double_scheme�+TestPackageIndex.test_bad_url_double_scheme7s����(�(�5�5�<P�5�Q��C��		��N�N�3���?�+�+�����.�.�	��e�*�C�!�S�(�'�3�.�.�#�5�
�6�
��	�s�=�B�A?�?Bc�t�[RRSS9nSnURUS5(deg)Nr,r-zfile:///tmp/test_package_indexT)rr
r�url_ok)rr&r's   r�test_url_ok�TestPackageIndex.test_url_okKs8���(�(�5�5�<P�5�Q��.���|�|�C��&�&�&�&rc��[RRnU"S5nSnX#:XdeU"S5nSnX#:XdeU"S5nSnX#:XdeU"S5nSnX#:Xdeg)	Nzreportlab-2.5.win32-py2.4.exe)�
reportlab-2.5z2.4�win32zreportlab-2.5.win32.exe)rKNrLz!reportlab-2.5.win-amd64-py2.7.exe)rKz2.7�	win-amd64zreportlab-2.5.win-amd64.exe)rKNrM)rr
�parse_bdist_wininst)r�parse�actual�expecteds    r�test_parse_bdist_wininst�)TestPackageIndex.test_parse_bdist_wininstPs����(�(�<�<���6�7��2���!�!�!��0�1��1���!�!�!��:�;��6���!�!�!��4�5��5���!�!�!rc��[RRRnU"S5up#US:XdeUS:Xdeg)z1
Test the basic usage of _vcs_split_rev_from_url
zhttps://example.com/bar@2995zhttps://example.com/bar�2995N)rr
r�_vcs_split_rev_from_url)r�vsrfur'�revs    r�test__vcs_split_rev_from_url�-TestPackageIndex.test__vcs_split_rev_from_urlcsC���(�(�5�5�M�M���7�8����/�/�/�/��f�}��}rc�L�US-nURS5nURS5 SSS5 S[RR	[U55-S-n[RRU5nSUR5;deg!,(df   Nr=f)zB
local_open should be able to read an index from the file system.
z
index.html�wz<div>content</div>Nzfile:�/�content)
�open�writer"�request�pathname2urlrArr
�
local_open�read)r�tmpdir�
index_file�fr'�ress      r�test_local_index�!TestPackageIndex.test_local_indexls����l�*�
�
�_�_�S�
!�Q�
�G�G�(�)�"�����3�3�C��K�@�@�3�F���&�&�1�1�#�6���C�H�H�J�&�&�&�	"�
!�s�B�
B#c���SS/n/SQn/SQnS/nS/n/SQnUVVV	V
Vs/sHRnUHHn[X4U/S/5H1n	UH'n
U
Vs/sHnSRXxX�/5PM snPM) M3 MJ MT nn
n	nnnUHZup�[[RRSU
-55nUS	RS:XdeUS
RU:XaMZe gs snfs snn
n	nnf)z&
EGG fragments must comply to PEP 440
�z1!)�0z0.0z0.0.0)�a0�b0�rc0z.post0z.dev0))rlrl)�	+ubuntu.0rq)z	+ubuntu-0rq)z	+ubuntu_0rqz3http://example.com/example-foo.zip#egg=example-foo-r�N)�sum�join�listrr
�distros_for_url�version)r�epoch�releases�pre�post�dev�local�e�r�p�locs�loc�versionsr(�vc�distss                r�test_egg_fragment�"TestPackageIndex.test_egg_fragmentws ��

��
��
��

��
�z���
��
���
������#�S�)�B�4�0����	15�5���R�W�W�a�A�^�
$��5��	
6�1�
6��
6��	�
��E�A���(�(�8�8�I�A�M���E�
��8�#�#�r�)�)�)���8�#�#�r�)�)�)���

6��
s�)C$�C�%C$�C$c�"�Sn[RR5nUS-nURSSSSU/5 URSSUSSS	/5 UR	X15nU[U5:Xde[
UR5S
:Xdeg)Nz7git+https://github.example/group/project@master#egg=foozproject@master�git�clone�--quiet�$https://github.example/group/projectz-C�checkout�master�)rr
r�register�downloadrA�len�calls)r�tmp_path�fpr'r&�expected_dir�results       r�test_download_git_with_rev�+TestPackageIndex.test_download_git_with_rev�s���G���(�(�5�5�7���"2�2��
������2��
�	�	���U�D�,�
�I�x�P�Q�����.����\�*�*�*�*��2�8�8�}��!�!�!rc��Sn[RR5nUS-nURSSSSU/5 UR	X15 g)Nz0git+https://github.example/group/project#egg=foo�projectr�r�r�r�)rr
rr�r�)rr�r�r'r&r�s      r�test_download_git_no_rev�)TestPackageIndex.test_download_git_no_rev�sS��@���(�(�5�5�7���)�+��
������2��
�	�	���s�%rc��Sn[RR5nSn[R"[
RRUS9 URX!5 SSS5 g!,(df   g=f)Nz'svn+https://svn.example/project#egg=fooz!.*SVN download is not supported.*r)	rr
rrrr>r?r@r�)rr�r'r&rCs     r�test_download_svn�"TestPackageIndex.test_download_svn�sS��7���(�(�5�5�7��2��
�]�]�9�+�+�:�:�#�
F��N�N�3�)�G�
F�
F�s�A+�+
A9rN)�__name__�
__module__�__qualname__�__firstlineno__rr)r/r;rDrHrRrYrir�r�r�r��__static_attributes__rrrrrsD��<�9�
9�	 �,�('�
"�&�	'�**�X"�&&�*rrc�2�\rSrSrSrSrSrSrSrSr	g)	�TestContentCheckers��c��[RRRS5nUR	SRS55 URR5S:XdeUR5(deg)N�3http://foo/bar#md5=f12895fdffbd45007040d2e44df98478z$You should probably not be using MD5�ascii� f12895fdffbd45007040d2e44df98478)	rr
�HashChecker�from_url�feed�encode�hash�	hexdigest�is_valid�r�checkers  r�test_md5�TestContentCheckers.test_md5�sl���*�*�6�6�?�?�A�
��	���;�B�B�7�K�L��|�|�%�%�'�+M�M�M�M����!�!�!�!rc���[RRRS5nUR	SRS55 UR
5(deg)z<Content checks should succeed silently if no hash is presentz1http://foo/bar#something%20completely%20different�anythingr�N�rr
r�r�r�r�r�r�s  r�test_other_fragment�'TestContentCheckers.test_other_fragment�sO���*�*�6�6�?�?�?�
��	���Z�&�&�w�/�0����!�!�!�!rc���[RRRS5nUR	SRS55 UR
5(deg)z0Content checks should succeed if a hash is emptyzhttp://foo/bar#md5=r�r�Nr�r�s  r�test_blank_md5�"TestContentCheckers.test_blank_md5�sK���*�*�6�6�?�?�@U�V�����Z�&�&�w�/�0����!�!�!�!rc�z�[RRRS5nURS:Xdeg)Nr��md5)rr
r�r��	hash_namer�s  r�test_get_hash_name_md5�*TestContentCheckers.test_get_hash_name_md5�s7���*�*�6�6�?�?�A�
��� � �E�)�)�)rc��[RRRS5nUR	SS5nUS:Xdeg)Nr�c��U$)Nr)�xs r�<lambda>�1TestContentCheckers.test_report.<locals>.<lambda>�s��qrzMy message about %szMy message about md5)rr
r�r��report)rr��reps   r�test_report�TestContentCheckers.test_report�sC���*�*�6�6�?�?�A�
���n�n�[�*?�@���,�,�,�,rrN)
r�r�r�r�r�r�r�r�r�r�rrrr�r��s��"�"�"�*�-rr�c��\rSrSrSrSrg)�TestPyPIConfig��c���US-nUR[S5SS9 [RR	5nUR
SnURS:XdeURS:Xdeg)Nz.pypircz�
                [pypi]
                repository=https://pypi.org
                username=jaraco
                password=pity%
                zutf-8)�encodingzhttps://pypi.org�jaracozpity%)�
write_textrrr
�
PyPIConfig�creds_by_repository�username�password)r�tmp_home_dir�pypirc�cfg�creds     r�test_percent_in_password�'TestPyPIConfig.test_percent_in_password�s|���	�)�������
��	�
	
��&�&�1�1�3���&�&�'9�:���}�}��(�(�(��}�}��'�'�'rrN)r�r�r�r�r�r�rrrr�r��s��(rr�rrc�V�[RRRS5 g)z3
REL should not hang on a contrived attack string.
a< rel=                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                N)rr
�REL�searchrrr�test_REL_DoSr�s��
��� � �'�'�(>�?r)�http.clientr4r�urllib.errorr"�urllib.request�inspectrr�setuptools.package_indexr�distutils.errorsr>rr�r��mark�timeoutr�rrr�<module>r�sd���	����
���|*�|*�~"-�"-�J(�(�(�����Q��@��@r

Youez - 2016 - github.com/yon3zu
LinuXploit