403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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_c_locale_coercion.cpython-315.opt-1.pyc
R
>lqjyWc�h�]PHs]PHs]PHs]PHs]PHs]PHs]QHGs]QH G	s	]QH(Gs,Q NsQs
QsP	sP	s,Q!Ns\O$Q6XcQs
QsL�\	O&2%cQ,sP
sQsP
sLc\O$O+Q2%cQ	s
Q	sL=\O$Q
6XcQsL)\O$Q6XcP
sL\O$Q6XcQs
QsQ!s\\O$Q"79%c\\Q
29%c
\\Q22sQsQs\Q\2sQQ\2sQsQsPr Pr!Pr"Qs#QQ\OH2s%QQ\%2s&\	ON\OP\ORQ2Q2QQ\%222s*Qs+\,Q6Xc\OZ2P!P!)#�)�
namedtuple)�support)�run_python_until_end�C�ascii�android�utf-8�aixz	iso8859-1�darwin�cygwin�vxworks�nl_langinfo�CODESETc��Qo[%c
UQ*
oUOU2o[QUPQ5vq4UO]6H!)z=import locale; print(locale.setlocale(locale.LC_CTYPE, '{}'))z>; import sys; sys.exit(not locale.nl_langinfo(locale.CODESET))�-c��PYTHONCOERCECLOCALE)�_check_nl_langinfo_CODESET�formatr�rc)�locale_name�cmd_fmt�cmd�result�py_cmds&    �0C:\Python315\\Lib\test\test_c_locale_coercion.py�_set_locale_in_subprocessrYsD��M�G�!�!��S�S��
�.�.��
%�C�)�$���L�N�F��9�9��>��zBfsencoding stdin_info stdout_info stderr_info lang lc_ctype lc_all�EncodingDetailsc�h`�\sQs]gsnQO	,QN2s\Q2s\Q2sQs	Us
P!)r�;c�n�UQ*oUeQoUOU2,]*oUOUOQ22UOQQ2oU%c[o	LUOQQ2o	UOQQ2o
V�U
1o[	UU,UNUN3O22!)z;Returns expected child process details for a given encodingz:{}�surrogateescape�backslashreplace�LANGznot set�LC_CTYPE�LC_ALL)r�append�get�CLI_COERCION_TARGET�dict�_asdict)�cls�coercion_expected�fs_encoding�stream_encoding�
stream_errors�env_vars�_stream�stream_info�
expected_lang�expected_lc_ctype�expected_lc_all�env_infos&&&&&&      r�get_expected_details�$EncodingDetails.get_expected_detailsts���"�E�)��� �.�M��~�~�m�4�5��9��	���7�>�>�*<�=�>� ���V�Y�7�
�� 3�� (���Z�� C��"�,�,�x��;�� �_�D���C��=�k�=�H�=�E�E�G�H�Hrc��[QQQUO1-U@vq#UO]6XfUOU2UOOQ2O
2o[UUO22oUOOQ2O2O
2oVV1!)a:Retrieves fsencoding and standard stream details from a child process

Returns (encoding_details, stderr_lines):

- encoding_details: EncodingDetails for eager decoding
- stderr_lines: result of calling splitlines() on the stderr output

The child is run in isolated mode if the current interpreter supports
that.
z-Xzutf8=0rr)r�CHILD_PROCESS_SCRIPTr�fail�out�decode�
splitlinesr*r+�err�rstrip)r,r1rr�stdout_lines�child_encoding_details�stderr_liness&&     r�get_child_details�!EncodingDetails.get_child_details�s���.��(�D�#�":�":�
��
����y�y�A�~��K�K����z�z�(�(��1�<�<�>��!%�c�<�&8�&@�&@�&B�!C���z�z�(�(��1�8�8�:�E�E�G��%�3�3r�)zimport sys, osz"print(sys.getfilesystemencoding())z2print(sys.stdin.encoding + ':' + sys.stdin.errors)z4print(sys.stdout.encoding + ':' + sys.stdout.errors)z4print(sys.stderr.encoding + ':' + sys.stderr.errors)z(print(os.environ.get('LANG', 'not set'))z,print(os.environ.get('LC_CTYPE', 'not set'))z*print(os.environ.get('LC_ALL', 'not set')))�__name__�
__module__�__qualname__�__firstlineno__�joinr;�classmethodr8rE�__static_attributes__�__classdictcell__��
__classdict__s@rrrgsC�����8�8�	%�	���I��I�*�4��4rz�Python runtime initialized with LC_CTYPE=C (a locale with default ASCII encoding), which may cause Unicode compatibility problems. Using C.UTF-8, C.utf8, or UTF-8 (if available) as alternative Unicode-compatible locales is recommended.z�Python detected LC_CTYPE=C: LC_CTYPE coerced to {} (set another locale or PYTHONCOERCECLOCALE=0 to disable this locale coercion behavior).c�*�[dP!,r[FD+o[U2%fJ[OU2J-	[%c'[]*r[
O
[2r[O%c�[Q[802[Q[802[Q[802[Q[802[Q[802[Q[802[Q[802P!P!)NzAVAILABLE_TARGETS = z EXPECTED_C_LOCALE_EQUIVALENTS = z$EXPECTED_C_LOCALE_STREAM_ENCODING = z EXPECTED_C_LOCALE_FS_ENCODING = z$EXPECT_COERCION_IN_DEFAULT_LOCALE = z_C_UTF8_LOCALES = z_check_nl_langinfo_CODESET = )�AVAILABLE_TARGETS�_C_UTF8_LOCALESrr'r)�CLI_COERCION_WARNING_FMTr�CLI_COERCION_WARNINGr�verbose�print�EXPECTED_C_LOCALE_EQUIVALENTS�!EXPECTED_C_LOCALE_STREAM_ENCODING�EXPECTED_C_LOCALE_FS_ENCODING�!EXPECT_COERCION_IN_DEFAULT_LOCALEr)�
target_locales r�setUpModuler^�s���
�$����)��
�$�]�3�3��$�$�]�3�)���/��2��7�>�>�?R�S������
�$�%6�$9�:�;�
�0�1N�0Q�R�S�
�4�5V�4Y�Z�[�
�0�1N�0Q�R�S�
�4�5V�4Y�Z�[�
�"�?�"5�6�7�
�-�.H�-K�L�M�rc�(`�\sQs]�snQsQsUsP!)�_LocaleHandlingTestCasec��[OU2oUvq�[OUUUUU2o
UOV�2Ue,oUOV�2P!)a
Check the C locale handling for the given process environment

Parameters:
    expected_fs_encoding: expected sys.getfilesystemencoding() result
    expected_stream_encoding: expected encoding for standard streams
    expected_warning: stderr output to expect (if any)
)rrEr8�assertEqual)�selfr1�expected_fs_encoding�expected_stream_encoding�expected_stream_errors�expected_warningsr-r�encoding_detailsrD�expected_detailss&&&&&&&    r�_check_child_encoding_details�5_LocaleHandlingTestCase._check_child_encoding_details�sh��!�2�2�8�<��)/�&��*�?�?�� �$�"��
��	
���)�<��$� "������9rrG)rHrIrJrKrjrNrOrPs@rr`r`�s����:�:rr`c�>`�\sQs]�sn\Q2sQsQsQsUs	P!)�LocaleConfigurationTestsc�L�[%f[OQ2gP!)z No C-with-UTF-8 locale available)rS�unittest�SkipTest)r,s&r�
setUpClass�#LocaleConfigurationTests.setUpClass�s!��!� ��#�#�$F�G�G�!rc�L�PUmQoQoQPQPQPQPQP-oQ
FDpo[FDboUQ6Xc
UQ6XcJUOUUQ59^tt^2UO2oVVU$UO	UUUPPP
Q	5PPP2Jd	Jr	P!)%fhJ}9h)Nrr$r%r&r�PYTHONIOENCODING�UTF-8��env_var�configured_locale�rfrgr-�r$r%��maxDiffrS�subTest�copyrj�rcrdre�
base_var_dictrw�
locale_to_set�var_dicts&      r�)test_external_target_locale_configuration�BLocaleConfigurationTests.test_external_target_locale_configuration�s������&��#*� �
�B����b�!�2���
�
�,�G�!2�!2�
��f�$��'�)A���\�\�'�4A�"�C�C�,�1�1�3�H�(5�W�%��6�6�x�7K�7O�NR�IM�IN�7�P�	C�C�"3�,�C�C�C���,B
�B#�B#c�L�PUmQoQoQPQPQPQPQQ-oQFDpo[FDboUQ6Xc
UQ6XcJUOUUQ59^tt^2UO2oVVU$UO	UUUQ	PP
Q
5PPP2Jd	Jr	P!)%fhJ}9h)Nrr$r%r&rrtrurv�strictryrzr{rs&      r�test_with_ioencoding�-LocaleConfigurationTests.test_with_ioencoding!s������&��#*� �
�B����b�!�2���
�
�,�G�!2�!2�
��f�$��'�)A���\�\�'�4A�"�C�C�,�1�1�3�H�(5�W�%��6�6�x�7K�7O�NV�IM�IN�7�P�	C�C�"3�,�C�C�C�r��r|)
rHrIrJrKrMrqr�r�rNrOrPs@rrmrm�s.�����H��H�!P�F P� Prrm�PY_COERCE_C_LOCALEz(C locale coercion disabled at build timec�P`�\sQsQsnQ
QksQsQsQsQsQs	Qs
Q	sUsP!)�LocaleCoercionTests�Cc��PUm[%f[o[oP
oU%c[,oQPQPQPQPQP-oUOU2UdV7Q$SoSo	[%fQU7c[9q�UOP	UQ59^tt^2[%f[%f
QU7cSo
SoLPo
P
o[O%cU
[,6XcPo
UOUUU	PU
U2PPP2[FD]oQFDSo
UOU
UUPQ59^tt^2UO2oV�U
$UOUUUPUU2PPP2JU	J_	P!)%fhKz9h)%fhJ�9h)	a�Check the C locale handling for various configurations

Parameters:
    fs_encoding: expected sys.getfilesystemencoding() result
    stream_encoding: expected encoding for standard streams
    coerce_c_locale: setting to use for PYTHONCOERCECLOCALE
      None: don't set the variable at all
      str: the value set in the child's environment
    expected_warnings: expected warning lines on stderr
    extra_vars: additional environment variables to set in subprocess
r$r%r&rrt)�default_localer)rw�nominal_localerrtrz)r|rSr[rZ�LEGACY_LOCALE_WARNING�update�DEFAULT_LOCALE_IS_C�DEFAULT_ENCODINGr}r\r�
is_androidrVrjrYr~)rcr.r/�coerce_c_localergr-�
extra_varsr��_fs_encoding�_stream_encoding�_expected_warnings�_coercion_expectedr�rwr�s&&&&&&,        r�_check_c_locale_coercion�,LocaleCoercionTests._check_c_locale_coercionIs���"��� � �7�K�?�O� %�� �%:�$;�!�
�B����b�!�2���
�
�	���Z�(��&�3B�/�0�#��*��"�"�x�z�'A�.>�>�L�
�\�\��.=��?�?�1�1�/�/�H�
�4J�%6�"�%6�"�%)�"�%*�"�
�"�"�"�&�+?�*@�@�%)�"��.�.�}�/;�/?�/3�/A�/A�
C�!?�0;�:�M�/���\�\�'�1>�6E�35�"�7�7� -�1�1�3�H�(5�W�%��6�6�x�7B�7F�7;�7H�7H�J�7�7�0�;�1?�?��47�7�7�sB�E%�E%�)E%�0E%�E%�E%�(+E8
�%E5	�.E5	�8F	�F	c�0�UOQQPQ5P!)r�r��r��rcs&r� test_PYTHONCOERCECLOCALE_not_set�4LocaleCoercionTests.test_PYTHONCOERCECLOCALE_not_set�s���%�%�g�w��%�Mrc�D�QFDoUOQQUQ5J	P!)�rr�)r��1�true�falser�)rc�settings& r�!test_PYTHONCOERCECLOCALE_not_zero�5LocaleCoercionTests.test_PYTHONCOERCECLOCALE_not_zero�s#��2�G��)�)�'�7�G�)�T�2rc�<�UOQQQ[,Q5P!)r�warn)r�rg)r�rVr�s&r�$test_PYTHONCOERCECLOCALE_set_to_warn�8LocaleCoercionTests.test_PYTHONCOERCECLOCALE_set_to_warn�s#���%�%�g�w�6<�9M�8N�	&�	Prc�~�UO[[QP
Q5UO[[QQP
Q5P!)�0)r�r-r�r�r&r-)r�r[rZr�s&r�$test_PYTHONCOERCECLOCALE_set_to_zero�8LocaleCoercionTests.test_PYTHONCOERCECLOCALE_set_to_zero�sE���%�%�&C�&G�69�8=�	&�	?�
	
�%�%�&C�&G�69�-0�8=�		&�	?rc	��UO[[PQP
Q5UO[[QQ[,P
Q5P!)Nrr�r�)r�r&rgr-)r�r[rZr�r�s&r�test_LC_ALL_set_to_C�(LocaleCoercionTests.test_LC_ALL_set_to_C�sN���%�%�&C�&G�6:�-0�8=�		&�	?�	
�%�%�&C�&G�6<�-0�9N�8O�8=�	&�	?rc���[O[OP2oUO[O[OU2[O[OP2oWQ7cUOQ2U[7cUOQU*2Qo[[OQQ5o[O[OQU,[OUP	Q5oUO!UO"O%2U2P![Oc%oSO[
S22Po=K�Po=hh9h)	Nz8test requires LC_CTYPE locale different than C and POSIXzcoerced LC_CTYPE locale: %sz=import locale; print(locale.setlocale(locale.LC_CTYPE, None))r�rr)�stdout�env�text)r�POSIX)�locale�	setlocaler%�
addCleanup�Error�skipTest�str�TARGET_LOCALESr*�os�environ�
subprocess�run�sys�
executable�PIPErbr�rA)rc�old_loc�loc�e�coder�rs&      r�#test_PYTHONCOERCECLOCALE_set_to_one�7LocaleCoercionTests.test_PYTHONCOERCECLOCALE_set_to_one�s
���"�"�6�?�?�D�9������(�(�&�/�/�7�C�	"��"�"�6�?�?�B�7�C��.� ��M�M�-�
.��.� ��M�M�7�#�=�>�O���2�:�:�3�7���n�n�c�n�n�d�D�9�$.�O�O�!$�"&�(��	
������*�*�,�c�2��!�|�|�	"��M�M�#�a�&�!�!��	"�s�%D9�9E2�
E2�E-�-E2r�)NT)
rHrIrJrKr�r�r�r�r�r�r�rNrOrPs@rr�r�Cs3����QJ�fN�U�P�?�
?�3�3rr�c�2�[O2P!)N)r�
reap_childrenrGrr�tearDownModuler��s�����r�__main__)rr�z
invalid.ascii)zC.UTF-8zC.utf8ru)r
�linux).r�r�r�r��	sysconfigro�collectionsr�testr�test.support.script_helperrrYrZr[r�r\r��platform�linked_to_muslr��
startswithrT�bool�hasattrrr�_fields�_EncodingDetailsrr�rUrSr)rVr^�TestCaser`rm�cpython_only�
skipUnless�get_config_varr�r�rH�mainrGrr�<module>r�s���	��
���"��;�!@��%,�!� '����$(�!�/���<�<�9��(/�%�$+�!������%(�E�!�����(-�%��\�\���U�#�#�(3�%�$/�!��\�\�X��$+�!��\�\�X��).�%��\�\�Y��(/�%�$+�!�1��"��L�L�+�+����F�M�"����F�I�����O���/��9��94�&�94�|��J��������N�<:�h�/�/�:�@MP�6�MP�^	���	���Y�-�-�.B�C�?�A�Y3�1�Y3�A��Y3�x��z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit