403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.141
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_multibytecodec.cpython-315.opt-1.pyc
R
>lqjSAc���]PHs]PHs]PHs]PHs]PHs]PHs]QHGs]QH G	s	]QH(Gs]QH0G
s
,QNsQQ\O2sQQ\O2sQ	Q
\O2sQQ\O2sQ
Q\O2sQQ\O2sQQ\O2sQQ\2s\Q6Xc\O22P!P!)�)�support)�	os_helper)�TESTFN)�
import_modulec�L`�\sQs]"snQsQsQsQsQsQs	Qs
QsUsP!)	�Test_MultibyteCodecc���[FDaoUOQOU2P2UO[QU2P2UOPO	U2Q2Jc	P!)�)�ALL_CJKENCODINGS�assertEqual�decode�str�encode��self�encs& �-C:\Python315\\Lib\test\test_multibytecodec.py�test_nullcoding�#Test_MultibyteCodec.test_nullcoding$sU��#�#�C����S�Z�Z��_�b�1����S��c�]�B�/����R�Y�Y�s�^�S�1�$r	c�f�[FD$oUOQOU2Q2J&	P!)�abcd�abcd)r
rrrs& r�test_str_decode�#Test_MultibyteCodec.test_str_decode*s(��#�#�C����V�]�]�3�/��9�$r	c��[OQ2oQo[OQU2UO[UQQ2P!)zeuc-krc�6�P[O]*1!��)�sys�maxsize)�excs&r�<lambda>�BTest_MultibyteCodec.test_errorcallback_longindex.<locals>.<lambda>0s��"�c�k�k�!�m�!4r	ztest.cjktestsapple�ham�spam)�codecs�
getdecoder�register_error�assertRaises�
IndexError)r�dec�	myreplaces&  r�test_errorcallback_longindex�0Test_MultibyteCodec.test_errorcallback_longindex.s?������)��4�	����n�i�8����*�c�1�>�	Cr	c��Qo[OQ[O2[FD%oUO	UOUQ2Q2J'	P!)�dztest.ignorer	u,����������������������������������������������������������������������������������������������������)r#r%�
ignore_errorsr
rr)r�datars&  r� test_errorcallback_custom_ignore�4Test_MultibyteCodec.test_errorcallback_custom_ignore5sE�������m�V�-A�-A�B�#�#�C����T�[�[��m�<�c�B�$r	c���[FDoQOU2o[U2J!	[O[
2P![O[
2h9h)z
# coding: {}
)r
�format�execr�unlinkr)rr�codes&  r�test_codingspec�#Test_MultibyteCodec.test_codingspec<sJ��	%�'�'��'�.�.�s�3���T�
�(�
���V�$��I���V�$�s�*A	�	A%c��UO[[OP2UO[[OP2P!�N)r&�AttributeError�_multibytecodec�MultibyteStreamReader�MultibyteStreamWriter�rs&r�test_init_segfault�&Test_MultibyteCodec.test_init_segfaultDs:�����.�)�?�?��	G����.�)�?�?��	Gr	c�z�[FD.oUO[[OU2P2J0	P!r)r
r&�	TypeErrorr#r$rs& r�test_decode_unicode�'Test_MultibyteCodec.test_decode_unicodeKs,��#�#�C����i��):�):�3�)?��D�$r	�)
�__name__�
__module__�__qualname__�__firstlineno__rrr*r0r7r@rD�__static_attributes__�__classdictcell__��
__classdict__s@rrr"s2����2�:�C�C�%�G�E�Er	rc�|`�\sQs]PsnQsQsQsQsQsQs	Qs
QsQ	s\
OQ
2sQsUsP!)�Test_IncrementalEncoderc��[OQ22oUOUOQ2Q2UOUO	2P2UOUOQP	2Q2UOUO	2P2UOUOPP	2Q2UOUOPP
2Q2UOUO	2P2P!)�cp949u파이썬 마을s��̽� ����u	☆∼☆s�١���r	�r#�getincrementalencoderrr�reset�r�encoders& r�test_stateless�&Test_IncrementalEncoder.test_statelessRs����.�.�w�7�9��������(I�J�E�	G��������$�/�������(<�d�C�4�	6��������$�/��������D�1�3�7��������E�2�C�8��������$�/r	c��[OQ22oUOUOQ2Q2UOUOQ2Q2UOUOQ2Q2UOUOQP	2Q2UOUO	2P2UOUOQ2Q2UOUOQ2Q2UOUOPP	2Q2UOUOPP	2Q2P!)�jisx0213�æ̀����ær	�̀������rSrVs& r�
test_stateful�%Test_IncrementalEncoder.test_stateful_s����.�.�z�:�<���������7��E��������1�3�7��������1�;�?��������$�7��E��������$�/��������1�;�?��������1�3�7��������D�1�;�?��������D�1�3�7r	c��[OQ22oUOUOQ2Q2UO	[
UOQ2UOUOQ2Q2UO	[
UOQ2UOUO
2P2UOUOQ2Q2UOUOQ2Q2UO	[
UOQ2UOUOPP	2Q2P!)	r[r^r	uģùær]r_rar`)r#rTrrr&�UnicodeEncodeErrorrUrVs& r�test_stateful_keep_buffer�1Test_IncrementalEncoder.test_stateful_keep_bufferrs����.�.�z�:�<���������1�3�7����,�g�n�n�h�G��������7��E����,�g�n�n�h�G��������$�/��������1�;�?��������1�3�7����,�g�n�n�h�G��������D�1�;�?r	c��[OQ22oUO2oUOUO	Q2Q2UOU2UOUO	Q2Q2UOUO	Q2Q2UO2oUOUO	Q2Q2UOU2UOUO	Q2Q2P!)�euc_jis_2004r\r]r^r	r_)r#rT�getstaterr�setstate)rrW�
initial_state�
partial_states&   r�$test_state_methods_with_buffer_state�<Test_IncrementalEncoder.test_state_methods_with_buffer_state~s����.�.�~�>�@���(�(�*�
��������7��E�����'��������7��E��������1�3�7��(�(�*�
��������1�;�?�����'��������1�;�?r	c��[OQ22oUOUOQ2Q2UO	2oUOUOQ2Q2UO	2oUOUOQ2Q2UOU2UOUOQ2Q2UOU2UOUOQ2Q2P!)�
iso2022_jp�z�z�あs$B$"s(Bzs$")r#rTrrrjrk)rrW�en_state�jp_states&   r�(test_state_methods_with_non_buffer_state�@Test_IncrementalEncoder.test_state_methods_with_non_buffer_state�s����.�.�|�<�>���������,�d�3��#�#�%���������1�3J�K��#�#�%���������,�.>�?�����"��������1�;�?�����"��������,�d�3r	c��[OQ22oUOUO2]2UO	Q2UOUO2[
O
QQ22UO	Q2UOUO2]2[OQ22oUOUO2[
O
QQ22UO	Q2UOUO2[
O
QQ22P!)	rir^sæ�littler_rqs	BBrts	�B)r#rTrrjr�int�
from_bytes)r�buffer_state_encoder�non_buffer_state_encoders&  r�$test_getstate_returns_expected_value�<Test_IncrementalEncoder.test_getstate_returns_expected_value�s�� &�;�;�N�K�M�����-�6�6�8�!�<��#�#�H�-����-�6�6�8����A�&�	'�	(�	�#�#�H�-����-�6�6�8�!�<�$*�#?�#?��#M�#O� ����1�:�:�<����A�%�'�	(�
	!�'�'��1����1�:�:�<����A�%�'�	(r	c��[OQ22o[OQQ2oUO	[
UOU2P!)�euc_jps	rz)r#rTr{r|r&�UnicodeErrorrk)rrW�pending_size_nines&  r�"test_setstate_validates_input_size�:Test_IncrementalEncoder.test_setstate_validates_input_size�sI���.�.�x�8�:���N�N�
0�
�	��
	
���,��(8�(8�:K�Lr	c��[OQ22o[OQQ2oUO	[
UOU2P!)r�s
�rz)r#rTr{r|r&�UnicodeDecodeErrorrk)rrW�invalid_utf8s&  r�#test_setstate_validates_input_bytes�;Test_IncrementalEncoder.test_setstate_validates_input_bytes�sH���.�.�x�8�:���~�~�
0�
�	��
	
���,�g�.>�.>��Mr	c���[OQ2Q2oUOUOQ2Q2UOUOQ2Q2P!)z	shift-jis�backslashreplace�ÿs\xff�
�
)r#rTrrrVs& r�test_issue5640�&Test_IncrementalEncoder.test_issue5640�sJ���.�.�{�;�<N�O���������/��:��������-�u�5r	c��[Q2oQoQo[OQ2V#1*oUOU2oUO	U]2P!)�	_testcapi�cp932uEPython の開発は、1990 年ごろから開始されています。a5
            import codecs
            encoding = %r
            text = %r
            encoder = codecs.getincrementalencoder(encoding)()
            text2 = encoder.encode(text).decode(encoding)
            if text2 != text:
                raise ValueError(f"encoding issue: {text2!a} != {text!a}")
        )r�textwrap�dedent�run_in_subinterpr)rr��encoding�textr6�ress&     r�test_subinterp�&Test_IncrementalEncoder.test_subinterp�sZ��"�+�.�	���V����� �
��� ���(�(��.������a� r	rF)rGrHrIrJrXrbrfrnrwrr�r�r�r�cpython_onlyr�rKrLrMs@rrPrPPsQ����0�8�&
@�
@�4�"(�@M�N�6�

���!��!r	rPc�F`�\sQs]�snQsQsQsQsQsQs	Qs
UsP!)�Test_IncrementalDecoderc��[OQ22oUOUOQ2Q2UOUOQ2Q2UOUOQ2P2P!)rRs��̽u파이s� ����u
썬 마을r	)r#�getincrementaldecoderrr�r�decoders& r�	test_dbcs�!Test_IncrementalDecoder.test_dbcs�sh���.�.�w�7�9��������(?�@�'�	)�������(@�A�.�	0��������,�b�1r	c���[OQ22oUOUOQ2Q2UO	[
UOQP	2UOUOQ2Q2UOUOQ2Q2UO	[
UOQP	2UOUOQ2Q2P!)rRs��u파r	��u이s̽)r#r�rrr&r�r�s& r�test_dbcs_keep_buffer�-Test_IncrementalDecoder.test_dbcs_keep_buffer�s����.�.�w�7�9���������8�(�C����,�g�n�n�c�4�H��������0�(�;��������8�(�C����,�g�n�n�%�t�	-��������0�(�;r	c�F�[OQ22oQoUOUOUQ*2P2UOUOQP	2P2UOUOUQ*2P2UOUOQ2Q2UOUOQ2Q2UOUOQP	2Q2UOUO	2P2UOUOQ2Q	2UOUOUQ*2P2UO[UOQ
P	2UOUOQ2Q2P!)z
iso2022-jp��(�B�$sB@$u世s@$@s@$z@$r	)r#r�rrrUr&r�)rr��ESCs&  r�test_iso2022�$Test_IncrementalDecoder.test_iso2022�s:���.�.�|�<�>�����������d�
�3�R�8��������d�3�R�8��������d�
�3�R�8��������/��:��������/��:��������d�3�X�>��������$�/��������.��5��������d�
�3�R�8����,�g�n�n�c�4�H��������/��:r	c��[FD?o[OU22oUO[UO
P2JA	P!r)r
r#r�r&rCr)rrr�s&  rrD�+Test_IncrementalDecoder.test_decode_unicodes8��#�#�C��2�2�3�7�9�G����i�����<�$r	c���[OQ22oUOUOQ2Q2UO	2vq#UOUQ2UOUOQ2P2UO	2vqEUOUQ2UOUOQ2Q2UO	2vqcUOUQ2UOVE12UOUOQ2Q2UO	2vqsUOUQ2UOQ2UOUO	2Q2P!)r�s��uうr	����)sabci�[)r#r�rrrjrk)rr��pending1�_�pending2�flags2�pending3�pending4s&       r�test_state_methods�*Test_IncrementalDecoder.test_state_methodss>���.�.�x�8�:��	
�������4�h�?��&�&�(�������3�'�	
�������0�"�5�"�+�+�-�������7�+�	
�������0�(�;��&�&�(�������3�'�	���(�+�,��������0�(�;��&�&�(�������3�'�	���,�-�����)�)�+�-@�Ar	c�F�[OQ22oUO[UO]{2UO[UOQ2UO[UOQ2UO[
UOQ2P!)r�)�invalidr)s1234r�)s	123456789r)r#r�r&rCrkr�r�s& r�test_setstate_validates_input�5Test_IncrementalDecoder.test_setstate_validates_input.sx���.�.�x�8�:�����)�W�%5�%5�s�;����)�W�%5�%5�~�F����)�W�%5�%5�7K�L����,�g�.>�.>�@Q�Rr	rF)rGrHrIrJr�r�r�rDr�r�rKrLrMs@rr�r��s+����2�	<�
;�=�B�8S�Sr	r�c�(`�\sQsQsnQsQsUsP!)�Test_StreamReader�5c�D�[[Q2oUOQ2UO2UO	[
29^tt^2[O[QQ5oPPP2UO[UO]2UO2[O[2P!SO2h9h)%fhKt9hSO2h9h[O[2h9h)�wb��rR)r�)�openr�write�close�assertWarns�DeprecationWarningr#r&r��readrr5)r�fs& r�test_bug1728403�!Test_StreamReader.test_bug17284036s���
	%��V�T�"�A�
����� ����	��!�!�"4�5�5��K�K���9��6�
��!�!�"4�a�f�f�a�@����	����V�$�����	��5�5��
���	�����V�$�sW�D�C�-D�C�/D�8!C.�D�C�D�C+	�$C+	�&D�.D�D�DrF)rGrHrIrJr�rKrLrMs@rr�r�5s����%�%r	r�c�4`�\sQsQsnQsQsQsQsUsP!)�Test_StreamWriter�Fc��[O2o[OQ2U2oUO	Q2UOUO
2Q2UO	Q2UOUO
2Q2UO	Q2UOUO
2Q2P!)�gb18030�123�123�𒍅s123�7�9�가¬s123�7�9�7�5�0�1��io�BytesIOr#�	getwriterr�r�getvalue�r�s�cs&  r�test_gb18030�Test_StreamWriter.test_gb18030Gs���
�:�:�<�����Y�'��*��	������������v�.�	������������'7�8�	������������4�	6r	c��[O2o[OQ2U2oUO	Q2UOUO
2Q2UO	Q2UOUO
2Q2UO	Q2UOUO
2Q2P!)zutf-8r�r�r�s123𒍅r�s123𒍅가¬r�r�s&  r�
test_utf_8�Test_StreamWriter.test_utf_8Rs���
�:�:�<�����W�%�a�(��	������������v�.�	������������'=�>�	������������
$�	%r	c���[O2o[OQ2U2oUO	Q2UOUO
2Q2P!)r�rrr�)rr��wrs&  r�test_streamwriter_strwrite�,Test_StreamWriter.test_streamwriter_strwrite^sD���J�J�L��
�
�
�i�
(��
+��
������������w�/r	rF)	rGrHrIrJr�r�r�rKrLrMs@rr�r�Fs����	6�
%�0�0r	r�c�^`�\sQsQsnQsQs\OQ2Q2sQs	Us
P!)�Test_ISO2022�dc�R�QoQoUOUOQ2U2P!)s(B:hu4:unit.ANi de familleu:hu4:unité de familleziso2022-jp-2)rr)r�
iso2022jp2�unis&  r�test_g2�Test_ISO2022.test_g2es'��>�
�(������*�*�>�:�C�@r	c��UOQQOQ22QFDVoQOU2oSO[9PIcQU2D%fJP	L	P
LQU222JX	P!)��­z
iso-2022-jp-2u㐆c3�6�SF �D
p]�6�w�	J	P!3h)�rF)�.0�xs& r�	<genexpr>�2Test_ISO2022.test_iso2022_jp_g0.<locals>.<genexpr>ns��1���1�a�T��1�s�)ziso-2022-jp-2004z
iso-2022-jp-3)�assertNotInr�assertFalse�any)rr��es&  r�test_iso2022_jp_g0�Test_ISO2022.test_iso2022_jp_g0js_������"3�":�":�?�"K�L�=�H�����)�A����S�S� 5�1� 5�S�S�S� 5�1� 5�5�6�>r	�cpuc�f�[QQ2FDo[U2OQQ2J 	P!)ii�iso_2022_jp�ignore)�range�chrr)rr�s& r�test_bug1572832�Test_ISO2022.test_bug1572832ps%���w��)�A���F�M�M�-��2�*r	rF)rGrHrIrJr�rr�requires_resourcer
rKrLrMs@rr�r�ds/����A�
7�
���u�%�3�&�3r	r�c�V`�\sQsQsnQsQsQsQs\\*sQs	Qs
QsQ	sUs
P!)
�TestStateful�vu世世ziso-2022-jps$B@$@$s(Bc��UOUOOUO2UO2P!r:)rr�rr��expected_resetr?s&r�test_encode�TestStateful.test_encode}s+��������)�)�$�-�-�8�$�:M�:M�Nr	c�r`�[OUO22nQOU1QkUO22oUOVO2UOROPP	Q5UO2UOROPP	Q5Q2P!)r	c3�R:�SF �DoROU2w�	J	P!3hr:�r)r��charrWs& �rr��7TestStateful.test_incrementalencoder.<locals>.<genexpr>�s"��!���!��
�N�N�4� � �!�s�'��final)	r#rTr��joinr�r�expectedrrU)r�outputrWs& @r�test_incrementalencoder�$TestStateful.test_incrementalencoder�s�����.�.�t�}�}�=�?�����#��	�	�#�#��	
������/��������$��7����D��������$��7��=r	c�f``�[OUO22n[UO2]*
nQOUU1Qk[
UO222oUOVO2UOROPP	Q5Q2P!)�r	c3�\:�SF �DvqROV!R6H2w�	J	P!3hr:r)r��indexrrW�
last_indexs&  ��rr��=TestStateful.test_incrementalencoder_final.<locals>.<genexpr>�s)��3���3���
�N�N�4�*�!4�5�5�3�s�$,r)
r#rTr��lenr�r�	enumeraterrr)rrrWr$s& @@r�test_incrementalencoder_final�*TestStateful.test_incrementalencoder_final�s�����.�.�t�}�}�=�?������^�a�'�
����5�(����3�5�5��	
����!4�!4�5��������$��7��=r	rF)rGrHrIrJr�r�rrUrrrr(rKrLrMs@rrrvs8�����D��H��H��E���%�N�O�>�>�>r	rc�:�\sQsQsQsQsQsQs\\*sQs	P!)�TestHZStateful�u聊聊�hzs~{ADADs~}rF)
rGrHrIrJr�r�rrUrrKrFr	rr+r+�s ���D��H��H��E���%�Nr	r+�__main__)�gb2312�gbkr�r-�	big5hkscsr��	shift_jisr��euc_jisx0213�shift_jisx0213ri�shift_jis_2004rR�euc_kr�johab�big5�cp950rq�iso2022_jp_1�iso2022_jp_2�iso2022_jp_2004�iso2022_jp_3�iso2022_jp_ext�
iso2022_kr)r<r#r�rr��unittest�testr�test.supportr�test.support.os_helperr�test.support.import_helperrr
�TestCaserrPr�r�r�r�rr+rG�mainrFr	r�<module>rGs����
�	�
����"�)�4���",E�(�+�+�,E�\U!�h�/�/�U!�nLS�h�/�/�LS�\%��)�)�%�"0��)�)�0�<3�8�$�$�3�$>�8�$�$�>�8&�\�&��z���M�M�O�r	

Youez - 2016 - github.com/yon3zu
LinuXploit