403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_filecmp.cpython-315.pyc
R
>lqj@c���]PHs]PHs]PHs]PHs]PHs]PHs]QHGs]QH G	s	Qs
QQ\O2sQQ\O2s
\Q6Xc\O2P!P!)	�)�support)�	os_helperc��[OV2[UQ29^tt^2o[UO	]22oU]*]*Q*U]$UO]2UO
U2PPP2[OV2[OU2O[OU2O6XfPg[OU2O[OU2O6XfPgP!)%fhK�9h)zAcreate a file with the same size and mtime but different content.zr+b�)�shutil�copy2�open�	bytearray�read�seek�write�copystat�os�stat�st_size�st_mtime)�
template_path�new_path�f�	next_chars&&  �&C:\Python315\\Lib\test\test_filecmp.py�_create_file_shallow_equalrs���
�L�L��)�	
�h��	�	�!��a�f�f�Q�i�(�	�!�!��q�(�C�/�	�!��	���q�	�	���	��	
�
�O�O�M�,�
�7�7�8��$�$����
�(>�(F�(F�F�F�F�
�7�7�8��%�%�����)?�)H�)H�H�H�H�
�	�s�AD-�-D=	�6D=	c�@`�\sQs]snQsQsQsQsQsQs	Us
P!)�FileCompareTestCasec	�L�[OUm[OQ*Um[OQ*Um[OQ*UmQoUOUOUO1FD3o[
UQQQ59^tt^2oUOU2PPP2J5	[
UOQQQ59^tt^2oUOQ2PPP2UOUO1FD$o[OUOU2J&	[UOUO
2[O2Um
P!)%fhJ�9h)%fhK�9h)	z-samez-diffz
-same-shallow�Contents of file go here.
�w�utf-8��encodingza+zAn extra line.
)r�TESTFN�name�	name_same�	name_diff�name_same_shallowrrrr
r�tempfile�
gettempdir�dir)�self�datar!�outputs&   r�setUp�FileCompareTestCase.setUps���$�$��	�"�)�)�G�3���"�)�)�G�3���!*�!1�!1�O�!C���,���Y�Y�������?�D��d�C�'�2�2�f����T�"�3�2�@��$�.�.�$��
9�
9�V��L�L�+�,�:��^�^�T�^�^�4�D��O�O�D�I�I�t�,�5�	#�4�9�9�d�.D�.D�E��&�&�(���3�2�2��:�
9�s$�*E?	�(F�?F
�F
�F#	�F#	c��[OUO2[OUO2[OUO2[OUO
2P!�N)r�unlinkr!r"r#r$�r(s&r�tearDown�FileCompareTestCase.tearDown-sD��
�	�	�$�)�)��
�	�	�$�.�.�!�
�	�	�$�.�.�!�
�	�	�$�(�(�)�c�^�UO[OUOUO2Q2UO[OUOUOP
Q5Q2UO[OUOUO2Q2UO[OUOUOP
Q5Q2UO[OUOUO
2Q2P!)zComparing file to itself fails��shallowz&Comparing file to identical file failsz2Shallow identical files should be considered equal)�
assertTrue�filecmp�cmpr!r"r$r0s&r�
test_matching�!FileCompareTestCase.test_matching3s���������D�I�I�t�y�y�9�8�	:�������D�I�I�t�y�y�%�H�8�	:�������D�I�I�t�~�~�>�@�	B�������D�I�I�t�~�~�u�M�@�	B�������D�I�I�t�/E�/E�F�L�	Nr3c�n�UO[OUOUO2Q2UO[OUOUO
2Q2UO[OUOUOP
Q5Q2P!)z!Mismatched files compare as equalz#File and directory compare as equalr5z;Mismatched file to shallow identical file compares as equal)�assertFalser8r9r!r#r'r$r0s&r�test_different�"FileCompareTestCase.test_different?s|��������T�Y�Y����?�7�	9�������T�Y�Y����9�9�	;�������T�Y�Y��0F�0F�-2�4�U�	Wr3c�>�[OUOUOP
Q5o[OUOUOP
Q5o[O
2UO
[[O2]6HQ2P!)Fr5z+Cache not cleared after calling clear_cache)	r8r9r!r"r#�clear_cacher7�len�_cache)r(�
first_compare�second_compares&  r�test_cache_clear�$FileCompareTestCase.test_cache_clearHsb�����D�I�I�t�~�~�u�M�
� ���T�Y�Y�����N����������G�N�N�+�q�0�E�	Gr3)r'r!r#r"r$)�__name__�
__module__�__qualname__�__firstlineno__r+r1r:r>rF�__static_attributes__�__classdictcell__��
__classdict__s@rrrs'����)�(*�
N�W�G�Gr3rc�`�\sQs]OsnQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsQsQsQsQsQsUsP!)�DirCompareTestCasec�:�[O2o[OO	UQ2Um[OO	UQ2Um[OO	UQ2Um[OO	UQ2Um[OO	UQ2Um	[OO	UOQ2Um
[OOQ2[OOQ26HUmQo[OUO
P	2[OUO
2[OO	UO
Q	2o[OU2[OO	UO
Q
2o[!UQQQ
59^tt^2oUO#U2PPP2UOUOUOUO1FD�o[OUP	2[OU2[OO	UQ	2o[OU2UO%cV`OIcQoLQ
o[OO	Vg2oV`OIc[%VH2J�[O&VH2J�	[![OO	UOQ2QQQ
59^tt^2oUO#Q2PPP2[![OO	UOQ2QQQ
59^tt^2oUO#Q2PPP2P!)%fhCK�9h)%fhK~9h)%fhP!9h)r'zdir-samezdir-diffz
dir-diff-filezdir-same-shallow�.hg�A�ar�subdir�filerrr�FiLe�file2zAn extra file.
zDifferent contents.
)r%r&r�path�joinr'�dir_same�dir_diff�
dir_diff_file�dir_same_shallow�dir_ignored�normcase�caseinsensitiver�rmtree�mkdirrrrr)	r(�tmpdirr)�subdir_path�
dir_file_pathr*r'�fn�	file_paths	&        rr+�DirCompareTestCase.setUpPs����$�$�&���7�7�<�<���.��������V�Z�8��
������V�Z�8��
��W�W�\�\�&�/�B��� "�����V�5G� H����7�7�<�<��
�
�u�=���!�w�w�/�/��4����8H�8H��8M�M���,���
�
�d�h�h��%�
��������g�g�l�l�4�8�8�X�6��
����������T�X�X�v�6�
�
�-��w�
7�
7�6��L�L���8��M�M�4�#8�#8��M�M�4�#5�#5�7�C��M�M�#�t�$��H�H�S�M��'�'�,�,�s�H�5�K��H�H�[�!��#�#�#��}�}�(<����������S�-�I��+�+�+�*�=�D����]�6�!7�$�"�'�'�,�,�t�}�}�g�6��g�
N�
N�RX��L�L�+�,�O��"�'�'�,�,�t�1�1�7�;�S�7�
S�
S�W]��L�L�0�1�T�
S�38�
7�
7��*O�
N��T�
S�
S�s6�O"�.O6�P	�"O3	�+O3	�6P	�?P	�	P	�P	c��UOUOUOUOUO1FDo[
OU2J	P!r.)r'r\r]r_r^rrc)r(r's& rr1�DirCompareTestCase.tearDown�s>���H�H�d�m�m�T�]�]��)�)�4�+=�+=�?�C��M�M�#��?r3c�H�UOQ[O2P!)rS)�assertInr8�DEFAULT_IGNORESr0s&r�test_default_ignores�'DirCompareTestCase.test_default_ignores�s���
�
�e�W�4�4�5r3c	��UO[OUOUOQ,2Q,,,16HQ2UO[OUOUOQ,2Q,,,16HQ2UO[OUOUOQ,P
Q5Q,,,16HQ2UO[OUOUOQ,P
Q5Q2UO[OUOUOQQ,2Q,Q,,16HQ2P!)rWz#Comparing directory to itself failsz!Comparing directory to same failsr5rYz&Comparing mismatched directories fails)r7r8�cmpfilesr'r\r=r^r0s&r�
test_cmpfiles� DirCompareTestCase.test_cmpfiles�s:������(�(����4�8�8�f�X�F� ��2�r�*�+�=�	?�	
����(�(����4�=�=�6�(�K� ��2�r�*�+�;�	=�
	
����(�(����4�8�8�f�X�16�8� ��2�r�*�+�>�	?�	
����(�(����4�=�=�6�(�16�8�;�	=�	
����)�)�$�(�(�D�4F�4F�&,�g�%6�8��X��y�"�-�.�=�	>r3c��Q[Q*Q1QQQ*Q11FD�vqUOUOUO1FDboUO	QU0UQ59^tt^2[
OUOV1,2oUOU,,U,12PPP2Jd	J�	P!)%fhJ}9h)	�z filename with embedded NUL bytesrU�@Bzvery long filenamez
cmpfiles: )�	other_dir)rwzNUL bytes filename)u	��.py�'surrogate codes (MUSICAL SYMBOL G CLEF))�__file__r'r\r]�subTestr8rs�assertTupleEqual)r(rW�descry�ress&    r�test_cmpfiles_invalid_names�.DirCompareTestCase.test_cmpfiles_invalid_names�s���
+�
��
� B�C�J�
�9�_�2�3�	
�J�D�#�h�h��
�
�t�}�}�E�	��\�\�J�t�f�"5��\�K�K�!�*�*�4�8�8�Y��G�C��)�)�#��B���/?�@�L�K�F�

�L�K�K�s�)9B4
�4C�=Cc
��Q
Q[OQ0Q1QQQ*Q11FCD
vq[OUOU2o[OVO2oQFD�oUOQU0UQ59^tt^2UO
[[129^tt^2[V52PPP2PPP2UOQ	U0UQ59^tt^2UO
[[129^tt^2[VE2PPP2PPP2J�	CJ	P!)%fhK�9h)%fhK�9h)%fhKI9h)%fhCJ9h)
rw�TopzMidzdirname with embedded NUL bytesrUrxzvery long dirnamezdircmp(ok, bad): )�targetzdircmp(bad, ok): )rwzNUL bytes dirname)u��rz)�	left_list�
right_list�	left_only�
right_only�common)
r�sepr8�dircmpr'r|�assertRaises�OSError�
ValueError�getattr)r(�bad_dirr~�d1�d2r�s&     r�test_dircmp_invalid_names�,DirCompareTestCase.test_dircmp_invalid_names�s)��)��2�6�6�(�'�
"�$E�F�G�
�9�_�1�2�	
�M�G�������'�2�B�������2�B���
�\�\�$5�d�V�"<�V�\�L�L��*�*�G�Z�+@�A�A���+�B�M��\�\�$5�d�V�"<�V�\�L�L��*�*�G�Z�+@�A�A���+�B�M�L��
�B�A��M�L��B�A��M�L�L�s`�$E

�5D:�E

�/$E3
�E �E3
�:E
�E
�E

�
E�E� E0�)E0�+E3
�3F�<Fc�P�UO[U2[U22P!)z0Assert that two lists are equal, up to ordering.)�assertEqual�sorted)r(�actual�expecteds&&&r�
_assert_lists� DirCompareTestCase._assert_lists�s����������)9�:r3c�L�UO2UOP
Q5P!�Fr5)�$_assert_dircmp_identical_directoriesr0s&r�!test_dircmp_identical_directories�4DirCompareTestCase.test_dircmp_identical_directories�����1�1�3��1�1�%�1�@r3c�L�UO2UOP
Q5P!r�)�_assert_dircmp_different_filer0s&r�test_dircmp_different_file�-DirCompareTestCase.test_dircmp_different_file�s���*�*�,��*�*�5�*�9r3c�L�UO2UOP
Q5P!r�)�$_assert_dircmp_different_directoriesr0s&r�!test_dircmp_different_directories�4DirCompareTestCase.test_dircmp_different_directories�r�r3c���UOUOq2[OV#1-U@oUO	UO
U2UO	UOU2UO%c>UOUOQQ,2UOUOQQ,2L<UOUOQQ,2UOUOQQ,2UOUOQQ,2UOUOQ,2UO	UO,2UO	UO,2UO	UOQ,2UO	UO ,2QO#UOUO2QQ,oUO%UO&U2P!)rWrVrX�
diff {} {}�Identical files : ['file']�"Common subdirectories : ['subdir'])r'r\r8r�r��left�rightrbr�r�r�r��common_dirsr�r��
same_files�
diff_files�format�_assert_report�report�r(�options�left_dir�	right_dir�d�expected_reports&,    rr��7DirCompareTestCase._assert_dircmp_identical_directories�sx��"�h�h��
�
�)��N�N�8�:�'�:���������*�������)�,��������q�{�{�V�X�,>�?����q�|�|�f�h�-?�@����q�{�{�V�X�,>�?����q�|�|�f�h�-?�@����1�8�8�f�h�%7�8����1�=�=�8�*�5�������b�)�������r�*��������x�0�������r�*�������$�-�-�8�(�0�
��
	
���A�H�H�o�6r3c��UOUOq2[OV#1-U@oUO	UO
U2UO	UOU2UOUOQQ,2UOUO,QN2UOUOQQ,2UOUOQ,2UO	UO,2UO	UOQ,2UO	UOQ,2UO	UO,2QO!UOUO2QO!UO2QQ,oUO#UO$U2UOUOq2[OV#1-U@oUO	UO
U2UO	UOU2UOUO,QN2UOUOQQ,2UOUOQQ,2UO	UOQ,2UO	UO,2UO	UOQ,2UO	UO,2QO!UOUO2QO!UO2QQ,oUO#UO$U2P!)rWrVrYr�zOnly in {} : ['file2']r�r�)rWrYrV)r'r]r8r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�s&,    rr��7DirCompareTestCase._assert_dircmp_different_directories�s~��"�h�h��
�
�)��N�N�8�:�'�:���������*�������)�,����1�;�;���(:�;����1�<�<�)D�E����1�8�8�f�h�%7�8����1�=�=�8�*�5�������b�)��������y�1��������x�0�������r�*�������$�-�-�8�$�+�+�D�M�M�:�(�0�	
��	
���A�H�H�o�6�#�m�m�T�X�X�)��N�N�8�:�'�:���������*�������)�,����1�;�;�(C�D����1�<�<�&�(�);�<����1�8�8�f�h�%7�8�������w�i�0�������r�*��������x�0�������r�*�����
�
�t�x�x�8�$�+�+�D�M�M�:�(�0�	
��	
���A�H�H�o�6r3c�b�[OUOUO1-U@oUO	UO
Q,2UO	UOQ,2QOUOUO2QQQ,oUOUOU2P!)rWrYr�r�zDiffering files : ['file2']r�)
r8r�r]r^r�r�r�r�r�r�)r(r�r�r�s&,  rr��0DirCompareTestCase._assert_dircmp_different_files����N�N�4�=�=�$�*<�*<�H��H���������x�0��������y�1�����
�
�t�/A�/A�B�(�)�0�	
��	
���A�H�H�o�6r3c�^�[OUOUOP
Q5oUO	UO
,2UO	UOQ,2QOUOUO2QQ,oUOUOU2P!)Fr5rWr�zDiffering files : ['file']r��
r8r�r'r_r�r�r�r�r�r��r(r�r�s&  r�%test_dircmp_no_shallow_different_file�8DirCompareTestCase.test_dircmp_no_shallow_different_file"s����N�N�4�8�8�T�%:�%:�E�J��������r�*��������x�0�������$�*?�*?�@�(�0�
��
	
���A�H�H�o�6r3c�Z�[OUOUO2oUO	UO
Q,2UO	UO,2QOUOUO2QQ,oUOUOU2P!)rWr�r�r�r�r�s&  r�test_dircmp_shallow_same_file�0DirCompareTestCase.test_dircmp_shallow_same_file.s����N�N�4�8�8�T�%:�%:�;���������x�0�������r�*�������$�*?�*?�@�(�0�
��
	
���A�H�H�o�6r3c
��UO[[OQ229^tt^2[O
UOUOPPP	2PPP2UO[O
UOUOPPP	Q5[O
2P!)%fhK_9h)zIdircmp.__init__() takes from 3 to 5 positional arguments but 6 were givenr5)	�assertRaisesRegex�	TypeError�re�escaper8r�r'r\�assertIsInstancer0s&r�#test_dircmp_shallow_is_keyword_only�6DirCompareTestCase.test_dircmp_shallow_is_keyword_only:s���
�
#�
#���I�I�a�b�
�
�
�N�N�4�8�8�T�]�]�D�$��E�	
�
	
����N�N�4�8�8�T�]�]�D�$��M��N�N�	
�
�
�s�/B:�:C
	�C
	c�(�QQ[O2oUUOUO2oUOoUO[
UO22Q,2UQ*oUO[U2U2P!)z/Check that dircmp.subdirs respects subclassing.c��\sQsQsQsP!)�=DirCompareTestCase.test_dircmp_subdirs_type.<locals>.MyDirCmp�G�)rHrIrJrKrLr�r3r�MyDirCmpr�Gs��r3r�rV)	r8r�r'r]�subdirsr��list�keys�type)r(r�r��sub_dirs�sub_dcmps&    r�test_dircmp_subdirs_type�+DirCompareTestCase.test_dircmp_subdirs_typeEsj��	�w�~�~�	��T�X�X�t�}�}�-���9�9������h�m�m�o�.��
�;��H�%������h���2r3c��UOUOq![OV2o[O
O
UQ2o[O
O
UQ2oQOUOUO2QQPQOVE2,oUOUOU2P!�rVr�r�r�)
r'r\r8r�rrZr[r�r��report_partial_closure�r(r�r�r��left_subdir�right_subdirr�s&      r�test_report_partial_closure�.DirCompareTestCase.test_report_partial_closureOs���"�h�h��
�
�)��N�N�8�/���g�g�l�l�8�X�6���w�w�|�|�I�x�8��������$�-�-�8�(�0������:�
��	
���A�4�4�o�Fr3c��UOUOq![OV2o[O
O
UQ2o[O
O
UQ2oQOUOUO2QQPQOVE2,oUOUOU2P!r�)
r'r\r8r�rrZr[r�r��report_full_closurer�s&      r�test_report_full_closure�+DirCompareTestCase.test_report_full_closure]s���"�h�h��
�
�)��N�N�8�/���g�g�l�l�8�X�6���w�w�|�|�I�x�8��������$�-�-�8�(�0������:�
��	
���A�1�1�?�Cr3c��[O29^tt^2oU2UO2O2O	Q2oUOVB2PPP2P!)%fhP!9h)�
)r�captured_stdout�getvalue�strip�splitr�)r(�
dircmp_report�expected_report_lines�stdout�report_liness&&&  rr��!DirCompareTestCase._assert_reportksU��
�
$�
$�
&�
&�&��O�!�?�?�,�2�2�4�:�:�4�@�L����\�A�'�
&�
&�
&�s�AA/�/B	�8B	)rbr'r]r^r`r\r_)rHrIrJrKr+r1rprtr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rLrMrNs@rrQrQOsw����.2�b�
6�>�,A�,�*;�A�:�A�7�2(7�V7�
7�
7�	
�3�G�D�B�Br3rQ�__main__)r8rr�rr%�unittest�testr�test.supportrr�TestCaserrQrH�mainr�r3r�<module>r�sg���	�	�
����"�
I�5G�(�+�+�5G�n`B��*�*�`B�F	�z���M�M�O�r3

Youez - 2016 - github.com/yon3zu
LinuXploit