| 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/support/__pycache__/ |
Upload File : |
R
>lqj. c �J � ] PH s ] PHs] PHs] PHs] QHGs ] QHGsGsG s ] QH(Gs \ \2 Q* Q* Q* s\ O Q\ O 2 s\ O Q2 sQ P -Q
ksQ sQ s\ 2 Q
Q\O( 2 2 sQ sP! )� )�Path)� REPO_ROOT�
TEST_HOME_DIR�requires_subprocess)�skip_if_missing�Tools�i18nzpygettext.pyz)msgid(.*?)(?:msgid_plural|msgctxt|msgstr)z"((?:\\"|[^"])*)"�stdout_onlyc �� � [ O [ O [ Q QQU ,[ O
[ O
P Q5 oU% c
UO ! U! )z
--no-locationz-o�-)�stdout�stderr�text)�
subprocess�run�sys�
executable� pygettext�PIPEr )�pathr �ress &$ �-C:\Python315\\Lib\test\support\i18n_helper.py�_generate_po_filer sJ � �
�.�.�#�.�.�)�)�4��d�<� *���
���"�$�C� ��z�z���J� c � � , o[ O U 2 F DT oPO [ O U2 2 oUO QQ2 oU% f JC UO U2 JV [
U2 ! )� z\"�")�
msgid_pattern�findall�join�msgid_string_pattern�replace�append�sorted)�po�msgids�msgid�msgid_strings & r �_extract_msgidsr( se � �
�F��&�&�r�*���w�w�3�;�;�E�B�C��#�+�+�E�3�7���<��M�M�,�'� +�
�&�>�r c �L � [ [ 2 Q * U * Q* ! )�translationdataz
msgids.txt)r r )�module_names &r �_get_snapshot_pathr, % s � ��
��!2�2�[�@�<�O�Or c �( ` � \ sQ s])s n Q sQsU sP! )�TestTranslationsBasec �n � [ Q2 [ UO P
Q5 oU O UO ] 2 U O UO
P2 [
UO 2 o[ UO 2 oUO 2 O 2 oU O V52 P! )zDAssert that msgids extracted from a given module match a
snapshot.
r )r )
r r �__file__�assertEqual�
returncoder
r( r r, �__name__� read_text�
splitlines�assertListEqual)�self�moduler r% �
snapshot_path�snapshots && r �assertMsgidsEqual�&TestTranslationsBase.assertMsgidsEqual, s� � �
�������U�C���������+�������R�(� ����,��*�6�?�?�;�
� �*�*�,�7�7�9�����V�.r � )r3 �
__module__�__qualname__�__firstlineno__r; �__static_attributes__�__classdictcell__)�
__classdict__s @r r. r. ) s �� � �/� /r r. c � � [ U O 2 o[ U2 o[ U O 2 oUO Q O
U2 2 P! )�
)r r0 r( r, r3 �
write_textr )r8 �contentsr% r9 s & r �update_translation_snapshotsrH ; s? � � ����1�H�
�X�
&�F�&�v���7�M����T�Y�Y�v�.�/r )�rer r �unittest�pathlibr �test.supportr r r �test.test_toolsr r �compile�DOTALLr r r r( r, �TestCaser. rH r= r r �<module>rQ s� �� � �
� � � F� F� +�
��O�g�%��.��?� ��
�
�G��9�9�&�
��z�z�"6�7� ��4� ��P� ��/�8�,�,� /� �/�"0r