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:/Python313/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/__pycache__/test_print.cpython-313.pyc
�

��i"!�	��SSKrSSKrSSKJr SSKJr \"5rSSSSSS	S
SS.r"S
S5r	"SS\R5r"SS\R5r\
S:Xa\R"5 gg)�N)�StringIO)�supportc��[U6$�N��print��args�sep�end�files    �$C:\Python313\\Lib\test\test_print.py�<lambda>rs��U�D�\�c��[USU06$)Nr
rr	s    rrrs��U�t�%<��%<rc��[USU06$)Nrrr	s    rrr���U�T�%:�s�%:rc��[XUS.6$)N)rr
rr	s    rrr���U���%Erc��[USU06$)Nrrr	s    rrrrrc��[XUS.6$)N)rr
rr	s    rrrrrc��[XUS.6$)N�rrrr	s    rrrs��U�d��%Crc��[XX#S.6$)N�rrr
rr	s    rrrs��U���%Nr))FFF)FFT)FTF)FTT)TFF)TFT)TTF)TTTc� �\rSrSrSrSrSrg)�ClassWith__str__�#c��Xlgr��x��selfr!s  r�__init__�ClassWith__str__.__init__$s���rc��UR$rr �r#s r�__str__�ClassWith__str__.__str__'s���v�v�
rr N)�__name__�
__module__�__qualname__�__firstlineno__r$r(�__static_attributes__�rrrr#s���rrc�:�\rSrSrSr\\\4SjrSrSrSr	Sr
g)	�	TestPrint�+z-Test correct operation of the print function.c���[U[LU[LU[L4n[R"5nU"X#XE5 SSS5 UR	WR5U5 g!,(df   N/=fr)�dispatch�
NotDefinedr�captured_stdout�assertEqual�getvalue)r#�expectedr
rrr
�fn�ts        r�check�TestPrint.check.sj���s�*�,��*�,��:�-�/�0���
$�
$�
&�!��t�#�$�'�	
�������x�0�'�
&�s�
A'�'
A5c�&^�[[4U4SjjnU"SS5 U"SS5 U"SS5 U"SS	5 U"S
S5 U"SS	S
S9 U"SSSS9 U"SSSS9 U"SSSSS9 U"SSS
SS9 U"SSSS9 U"SSSS9 U"SS5 U"SSSS9 U"SSSS9 U"SSSSS9 U"S [S
545 U"S![S"5S#45 TR[[SS$S9 TR[[SS$S9 TR[
[SSS%9 g)&Nc�>�TRXX#S9 [5nTRSXX4S9 TRUR5U5 g)Nr�r)r<rr7r8)r9r
rr�or#s     �rr!�TestPrint.test_print.<locals>.x@sH���
�J�J�x�3�J�8��
�A��J�J�r�4�c�J�:�
���Q�Z�Z�\�8�4r�
r/�a
)�azNone
rz1 2
)��z1   2
)rF� rGz1*2
�*)rz1 s)rF�sr@)rza
b
)rE�bz1.01)g�?rFrz1*a*1.3+)rFrEg�������?�+za

b
)rDrKz+ +
)�rHrMza
 b
z*
zabc 1
�abcrF�)r
)r5r�assertRaises�	TypeErrorr�AttributeErrorr"s` r�
test_print�TestPrint.test_print?s8���",�*�	5�	
�$���	�%���	�(�G��	�'�6��	�)�[�!�	�'�6�s�#�	�%��r�"�	�(�J�D�)�	�&�(���+�	�*�m��#�6�	�*�l��-�	�+�(�c�2�	�)�\�"�	�)�\�t�,�	�)�\�t�,�	�)�\�t��6�	�%�"�3�'�)�*�	�)�&�u�-�q�1�2�	
���)�U�B�A��6����)�U�B�A��6����.�%��"��=rc�0�"SS5nU"5n[SUSSS9 [SUSSS9 [SUS	S
9 URURS5 URURS5 "SS
5nUR	[
[SU"5SS
9 g)Nc�&�\rSrSrSrSrSrSrg)�,TestPrint.test_print_flush.<locals>.filelike�ic� �SUlSUlg)Nr@r)�written�flushedr's rr$�5TestPrint.test_print_flush.<locals>.filelike.__init__js��!��� ��rc�.�U=RU-
slgr)rZ�r#�strs  r�write�2TestPrint.test_print_flush.<locals>.filelike.writens������#�rc�.�U=RS-
slg)NrF)r[r's r�flush�2TestPrint.test_print_flush.<locals>.filelike.flushqs������!�r)r[rZN)r*r+r,r-r$r`rcr.r/rr�filelikerWis��
!�
$�
"rrerFr@T)r
rrcrGrOF)r
rcz123
c� �\rSrSrSrSrSrg)�+TestPrint.test_print_flush.<locals>.noflush�|c��grr/r^s  rr`�1TestPrint.test_print_flush.<locals>.noflush.write}s��rc��[er)�RuntimeErrorr's rrc�1TestPrint.test_print_flush.<locals>.noflush.flush�s��"�"rr/N)r*r+r,r-r`rcr.r/rr�noflushrg|s��
�
#rrn)rr7rZr[rPrl)r#re�frns    r�test_print_flush�TestPrint.test_print_flushgs���		"�		"�
�J��
�a�a�R�t�,�
�a�a�R�t�,�
�a�a�u�%�������G�,�������A�&�	#�	#�	
���,��q�w�y���Mrc���"SS5n[R"[SS5 [5[l[U"55 SSS5 g!,(df   g=f)Nc��\rSrSrSrSrg)�"TestPrint.test_gh130163.<locals>.X�c�T�[5[l[R"5 g)N�foo)r�sys�stdoutr�
gc_collectr's rr(�*TestPrint.test_gh130163.<locals>.X.__str__�s��%�Z��
��"�"�$�rr/N)r*r+r,r-r(r.r/rr�Xrt�s��
rr|ry)r�	swap_attrrxrryr)r#r|s  r�
test_gh130163�TestPrint.test_gh130163�s>��	�	��
�
�s�H�d�
3�!��C�J��!�#�J�4�
3�
3�s�$A�
A"r/N)r*r+r,r-�__doc__r5r<rSrpr~r.r/rrr1r1+s$��7��*�:�1�"&>�PN�:	rr1c�B�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)�TestPy2MigrationHint�zoTest that correct hint is produced analogous to Python3 syntax,
if print statement is executed as in Python 2.
c���SnUR[5n[U5 SSS5 URS[	WR
55 g!,(df   N4=f)Nzprint "Hello World"�?Missing parentheses in call to 'print'. Did you mean print(...)�rP�SyntaxError�exec�assertInr_�	exception�r#�python2_print_str�contexts   r�test_normal_string�'TestPy2MigrationHint.test_normal_string��N��1��
�
�
�{�
+�w��"�#�,�	
�
�
�W��G�%�%�&�	(�,�
+���A�
A c���SnUR[5n[U5 SSS5 URS[	WR
55 g!,(df   N4=f)Nzprint "Hello World",r�r�r�s   r�test_string_with_soft_space�0TestPy2MigrationHint.test_string_with_soft_space�sN��2��
�
�
�{�
+�w��"�#�,�	
�
�
�W��G�%�%�&�	(�,�
+�r�c���SnUR[5n[U5 SSS5 URS[	WR
55 g!,(df   N4=f)Nzprint  "Hello World", r�r�r�s   r�%test_string_with_excessive_whitespace�:TestPy2MigrationHint.test_string_with_excessive_whitespace�sN��4��
�
�
�{�
+�w��"�#�,�	
�
�
�W��G�%�%�&�	(�,�
+�r�c���SnUR[5n[U5 SSS5 URS[	WR
55 g!,(df   N4=f)Nz.if 1:
            print "Hello World"
        r�r�r�s   r�#test_string_with_leading_whitespace�8TestPy2MigrationHint.test_string_with_leading_whitespace�sR�����
�
�{�
+�w��"�#�,�	
�
�
�W��G�%�%�&�	(�,�
+�r�c���SnUR[5n[U5 SSS5 URS[	WR
55 g!,(df   N4=f)Nzprint p;r�r�r�s   r�test_string_with_semicolon�/TestPy2MigrationHint.test_string_with_semicolon�sN��&��
�
�
�{�
+�w��"�#�,�	
�
�
�W��G�%�%�&�	(�,�
+�r�c���SnUR[5n[U5 SSS5 URS[	WR
55 g!,(df   N4=f)Nzfor i in s: print ir�r�r�s   r� test_string_in_loop_on_same_line�5TestPy2MigrationHint.test_string_in_loop_on_same_line�r�r�c��UR[5n[[R-	S4 SSS5 URS[
WR55 UR[5n[S-	 SSS5 URS[
UR55 UR[5n[[R-	 SSS5 URS[
UR55 UR[5n[[R- SSS5 URS[
UR55 "SS5nUR[U"5-	S5 g!,(df   GN]=f!,(df   GN#=f!,(df   N�=f!,(df   N�=f)N�messagez6Did you mean "print(<message>, file=<output_stream>)"?�*z
Did you mean zDid you meanc��\rSrSrSrSrg)�\TestPy2MigrationHint.test_stream_redirection_hint_for_py2_migration.<locals>.OverrideRRShift��c��g)Nr�r/)r#�lhss  r�__rrshift__�hTestPy2MigrationHint.test_stream_redirection_hint_for_py2_migration.<locals>.OverrideRRShift.__rrshift__�s��rr/N)r*r+r,r-r�r.r/rr�OverrideRRShiftr��s��
rr�)rPrQrrx�stderrr�r_r��max�assertNotInr7)r#r�r�s   r�.test_stream_redirection_hint_for_py2_migration�CTestPy2MigrationHint.test_stream_redirection_hint_for_py2_migration�sJ��
�
�
�y�
)�W��S�Z�Z���*�*��
�
�*�+.�w�/@�/@�+A�	C�
�
�
�y�
)�W��R�K�*��
�
�*�+.�w�/@�/@�+A�	C��
�
�y�
)�W��3�:�:��*�����#�g�.?�.?�*@�A��
�
�y�
)�W��S�Z�Z��*������W�->�->�)?�@�	�	�	
����/�"3�3�R�8�7*�
)��*�
)��*�
)��
*�
)�s/�F�2
F�>F*�F;�
F�
F'�*
F8�;
G	r/N)
r*r+r,r-r�r�r�r�r�r�r�r�r.r/rrr�r��s*���(�(�(�(�(�(�9rr��__main__)�unittestrx�ior�testr�objectr5r4r�TestCaser1r�r*�mainr/rr�<module>r�s����
���
�X�
�	2�<�:�E�:�E�C�N�!��*��b��!�!�b�JW9�8�,�,�W9�v�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit