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/test_tools/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_tools/__pycache__/test_msgfmt.cpython-315.opt-1.pyc
R
>lqj�*c��Qs]PHs]PHs]PHs]PHs]QHGs]QHGs]QH$G
s
]QH,GsG
s
]QH8GsGsGs\Q2\\2O&Q*O)2s\\2Q*s\Q*s\Q29^tt^2]PH`sPPP2Q	sQ
Q\O42sQQ
\O42sQQ\O42sQs\Q6Xc\\ \OB2]6�c2\OB]*Q6Xc\2\OD]2\OF2P!P!)%fhK�9h)z(Tests for the Tools/i18n/msgfmt.py tool.)�GNUTranslations)�Path)�temp_cwd)�assert_python_failure�assert_python_ok)�imports_under_tool�skip_if_missing�toolsdir�i18n�msgfmt_dataz	msgfmt.pyc�*�[[QV2P!)z-o)r�	msgfmt_py)�po_file�mo_files&&�0C:\Python315\\Lib\test\test_tools\test_msgfmt.py�compile_messagesrs���Y��g�7�c�R`�\sQs]snQsQsQsQsQsQs	Qs
QsQ	sUs
P!)
�CompilationTestc
��PUm[29^tt^2[OQ2FD�oUO	UQ59^tt^2UOQ2o[
UQ29^tt^2o[U2oPPP2UOo[V2[
UQ29^tt^2o[U2oPPP2UOWOWO2PPP2J�	PPP2P!)%fhK�9h)%fhK_9h)%fhCJ
9h)%fhP!9h)N�*.po)r
�.mo�rb)�maxDiffr�data_dir�glob�subTest�with_suffix�openr�namer�assertDictEqual�_catalog)�selfr
r�f�expected�tmp_mo_file�actuals&      r�test_compilation� CompilationTest.test_compilations������
�Z�Z�#�=�=��0���\�\�'�\�2�2�%�1�1�%�8�G��g�t�,�,��#2�1�#5��-�#*�,�,�K�$�W�:��k�4�0�0�A�!0��!3��1��(�(����(�:K�:K�L�3�2�1��Z�-�,��
1�0��3�2�2���Z�Z�sk�4D?�&D*
�5D�3D*
�4D�.D*
�.D?�D�
D�D*
�D'� D'�"D*
�*D<�3D<�5
D?�?E	�E	c	�^�[29^tt^2Qo[[Q*U2[UQ29^tt^2oUO	2oPPP2PPP2[
OQWQ*2voooooo	o
UOUQ2UOU]2UOU]	2UOU]2UOU]d2UOU	]2UOU
]2P!)%fhK�9h)%fhK�9h)�messages.moz
general.porz=7I:N�Nl�*)rrrr�read�struct�unpack�assertEqual)r!r$r"�mo_data�magic�version�num_strings�orig_table_offset�trans_table_offset�hash_table_size�hash_table_offsets&          r�test_binary_header�"CompilationTest.test_binary_header/s���
�Z�Z�'�K��X��4�k�B��k�4�(�(�A��&�&�(��)��
�M�M�%����.�	
��������	
����
�+�����!�$�����a�(����*�B�/����+�S�1�����!�,����*�A�.�')�(���Z�s/�.D�D		�D�	D
�D
�D�D,	�%D,	c��[[Q*Q29^tt^2o[U2oPPP2UOWO	Q2Q2UOUO	Q2Q2UOUOQQ2Q2UOUOQQ2Q2UOUO	Q2Q2UOUO	Q	2Q
2UOUO	Q2Q2UOUO
Q
Q]2Q
2UOUO
Q
Q]2Q2UOUOQQ
Q]2Q
2UOUOQQ
Q]2Q2P!)%fhCK�9h)z
general.mor�foo�bar�baz�abc�xyz�Multilinestring�Multilinetranslationz	"escapes"z"translated"z
 newlines 
z
 translated 
zOne email sent.z%d emails sent.)rrrr.�gettext�pgettext�ngettext�	npgettext)r!r"�ts&  r�test_translations�!CompilationTest.test_translationsHs|��
�(�\�)�4�
0�
0�A���"�A�1�	
������5�)�5�1�������5�)�5�1�������E�5�1�5�9�������E�5�1�5�9�������#4�5�7M�N�������;�/��@�������#3�4�6H�I�������$5�7H�!�L�*�	,�������$5�7H�!�L�*�	,�������U�,=�%6��;�*�	,�	
������U�,=�%6��;�*�	,�#1�
0�
0�s�F.�.F?	�7F?	c��[29^tt^2[Q2OQ2[[Q2oUO
O
Q2oUOQU2PPP2P!)%fhP!9h)zbom.pos"msgid "Python"
msgstr "Pioton"
�utf-8z'The file bom.po starts with a UTF-8 BOM)rr�write_bytesrr�err�decode�assertIn�r!�resrKs&  r�test_po_with_bom� CompilationTest.test_po_with_bom^sU��
�Z�Z���N�&�&�'W�X�'�	�8�<�C��'�'�.�.��)�C��M�M�C�S�I��Z�Z�Z���AA6�6B	�?B	c��[29^tt^2[Q2OQ2[[Q2oUO
O
Q2oUOQU2PPP2P!)%fhP!9h)�
invalid.poz+msgid_plural "plural"
msgstr[0] "singular"
rIz"msgid_plural not preceded by msgid�rr�
write_textrrrKrLrMrNs&  r�test_invalid_msgid_plural�)CompilationTest.test_invalid_msgid_pluralfs\��
�Z�Z����)�)�+�
�
(�	�<�@�C��'�'�.�.��)�C��M�M�>��D��Z�Z�Z�rRc��[29^tt^2[Q2OQ2[[Q2oUO
O
Q2oUOQU2PPP2P!)%fhP!9h)rTzmsgid "foo"
msgstr[0] "bar"
rIzplural without msgid_pluralrUrNs&  r� test_plural_without_msgid_plural�0CompilationTest.test_plural_without_msgid_pluralqs\��
�Z�Z����)�)�+�
�
(�	�<�@�C��'�'�.�.��)�C��M�M�7��=��Z�Z�Z�rRc��[29^tt^2[Q2OQ2[[Q2oUO
O
Q2oUOQU2PPP2P!)%fhP!9h)rTz-msgid "foo"
msgid_plural "foos"
msgstr "bar"
rIz"indexed msgstr required for pluralrUrNs&  r�(test_indexed_msgstr_without_msgid_plural�8CompilationTest.test_indexed_msgstr_without_msgid_plural|s\��
�Z�Z����)�)�+�
�(�	�<�@�C��'�'�.�.��)�C��M�M�>��D��Z�Z�Z�rRc��[29^tt^2[Q2OQ2[[Q2oUO
O
Q2oUOQU2PPP2P!)%fhP!9h)rTz"foo"
rIzSyntax errorrUrNs&  r�test_generic_syntax_error�)CompilationTest.test_generic_syntax_error�s[��
�Z�Z����)�)�+�
�(�	�<�@�C��'�'�.�.��)�C��M�M�.�#�.��Z�Z�Z�rR)r)�__name__�
__module__�__qualname__�__firstlineno__r&r7rFrPrWrZr]r`�__static_attributes__�__classdictcell__��
__classdict__s@rrrs6����M� /�2,�,J�	E�	>�
E�/�/rrc�8`�\sQs]�sn\Q2sQsQsUsP!)�POParserTestc�D�[OO2P!)N)�msgfmt�MESSAGES�clear)�clss&r�
tearDownClass�POParserTest.tearDownClass�s��	�����rc
�R�Q	o[29^tt^2SFD�vq#UOUQ59^tt^2QUQ0o[Q2OU2[O
O
2[OQQ2[QQ29^tt^2o[U2oPPP2UOWOUQ-2PPP2J�	PPP2Q
o[29^tt^2SFD�oUOUQ59^tt^2QUQ0o[Q2OU2[O
O
2UO[29^tt^2[OQQ2PPP2PPP2J�	PPP2P!)%fhCK
9h)%fhCJ�9h)%fhCK9h)%fhKc9h)%fhCJ9h)%fhP!9h)�"")�	po_stringzmsgid z
msgstr "translation"zmessages.por)r�translation)�string))rt�)z"" "" ""rx)z"\\"�\)z"\""�")z"\t"�	)z"\n"�
)z"\r"�
)z"\f"�)z"\a"�)z"\b"�)z"\v"�)z"foo"r:)z"foo" "bar"�foobar)z
"foo""bar"r�)z"" "foo" ""r:)z
"foo\nbar"�foo
bar)z
"foo\n" "bar"r�)z
"foo\tbar"�foo	bar)z
"foo\t" "bar"r�)z
"foo\"bar"�foo"bar)z
"foo\"" "bar"r�)z
"foo\\" "bar"zfoo\bar)z"\120\171\164\150\157\156"�Python)z"\120\171\164" "\150\157\156"r�)z!"\"\120\171\164" "\150\157\156\""�"Python")z"\x50\x79\x74\x68\x6f\x6e"r�)z"\x50\x79\x74" "\x68\x6f\x6e"r�)z!"\"\x50\x79\x74" "\x68\x6f\x6e\""r�)rzz"""z"" "r:z"" "fooz	"foo" foo�42z"" 42 ""z"\x"z"\u1234"z"\N{ROMAN NUMERAL NINE}")rrrrVrmrnro�makerrrr �assertRaises�	Exception)	r!�
valid_stringsrur#�por"r%�invalid_strings�invalid_strings	&        r�test_strings�POParserTest.test_strings�s���
$
�
�L�Z�Z�'4�#�	��\�\�I�\�6�6�"�)��,B�C�B���'�2�2�2�6��O�O�)�)�+��K�K�
�}�=��m�T�2�2�a�!0��!3��3��(�(����8�]�:S�T�7�6�(5��"
��&�Z�Z�"1���\�\��\�8�8�!�.�!1�1G�H�B���'�2�2�2�6��O�O�)�)�+��*�*�9�5�5����M�=�A�6�9�8�#2��Z�13�2�2��7�6�6���Z�Z��V6�5��9�8�8���Z�Z�s��#G�A*G
�#F0�/&G
�G�=!H�AH
�:G-�H
�H�0G�9G�;	G
�G�
G�
G�G*	�"G*	�-G=�6G=�8H
�H�	H�
H�H&	�H&	�)	rbrcrdre�classmethodrqr�rfrgrhs@rrkrk�s%����� �� �
WB�WBrrkc�@`�\sQs]�snQsQsQsQsQsQs	Us
P!)�CLITestc��QFD@o[[U2oUOOQ2oUO	QU2JB	P!)�--helprI�EGenerate binary message catalog from textual translation description.)r�z-h)rrrKrLrM)r!�optionrOrKs&   r�	test_help�CLITest.test_help�s:��&�F�"�9�f�5�C��'�'�.�.��)�C��M�M�a�cf�g�'rc��QFDNo[[U2oUOOQ2O	2oUOQU2JP	P!)�	--versionrIz
msgfmt.py 1.2)r�z-V)rr�outrL�stripr.)r!r�rOr�s&   r�test_version�CLITest.test_version�sC��)�F�"�9�f�5�C��'�'�.�.��)�/�/�1�C����_�c�2�*rc��[[Q2oUOOQ2oUO	QU2UO	QU2P!)z--invalid-optionrIr�z&option --invalid-option not recognized)rrrKrLrMrNs&  r�test_invalid_option�CLITest.test_invalid_options@��#�I�/A�B���g�g�n�n�W�%���
�
�]�_b�c��
�
�>��Drc��[[2oUOOQ2O	QQ2oUOQU2P!)rIz
r|z=No input file given
Try `msgfmt --help' for more information.)rrrKrL�replacerMrNs&  r�test_no_input_file�CLITest.test_no_input_filesA���y�)���g�g�n�n�W�%�-�-�f�d�;���
�
�B�CF�	Hrc�(�[[Q2P!)znonexistent.po)rr)r!s&r�test_nonexistent_file�CLITest.test_nonexistent_files
���i�)9�:rr�)rbrcrdrer�r�r�r�r�rfrgrhs@rr�r��s&����h�3�E�H�;�;rr�c
��[OQ2FD�oUOQ2o[V2[	UQ29^tt^2o[U2oPPP2UOQ2o[	UQ29^tt^2oWOO2o[UQQ5o[OVR]Q5UOQ2PPP2J�	P!)%fhK�9h)%fhJ�9h)	rrrz.json�wc�D�[U]*[2U]*1!)�)�
isinstance�tuple)�xs&r�<lambda>�*update_catalog_snapshots.<locals>.<lambda>s��z�!�A�$��/F��!��.Mr)�key)�indentr|)rrrrrrr �items�sorted�json�dump�write)r
rr"�translations�catalog_file�datas      r�update_catalog_snapshotsr�s����=�=��(���%�%�e�,����*��'�4�
 �
 �A�*�1�-�L�!��*�*�7�3��
�,��
$�
$���(�(�.�.�0�D��$�$M�N�D��I�I�d�a�(�
�G�G�D�M�	%�
$�)�
!�
 ��%�
$�
$�s%�C$	�AC7	�$C4
�-C4
�7D
�D
�__main__z--snapshot-update)$�__doc__r�r,�sys�unittestrAr�pathlibr�test.support.os_helperr�test.support.script_helperrr�test.test_toolsrrr�__file__�parent�resolver�
script_dirrrmr�TestCaserrkr�r�rb�len�argv�exit�mainr�rr�<module>r�s��.��
�
��#��+�N�I�I������N�!�!�M�1�:�:�<��
�(�^�f�
$�
���$�	������ �8�s/�h�'�'�s/�l^B�8�$�$�^B�B;�h���;�<
� �z��
�3�8�8�}�q��S�X�X�a�[�,?�?� �"�������M�M�O�	�[ ��s�E�E	�E	

Youez - 2016 - github.com/yon3zu
LinuXploit