✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.84
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python39/lib64/python3.9/test/test_tools/__pycache__//test_i18n.cpython-39.pyc
a

XC?hV#�@spdZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
ddlmZm
Z
e	�Gdd�dej�ZdS)	z%Tests to cover the Tools/i18n package�N)�dedent)�assert_python_ok)�skip_if_missing�toolsdir)�temp_cwd�temp_dirc@s�eZdZdZej�edd�Zdd�Z	dd�Z
dd	�Zd
d�Ze
�ej�d�d
�dd��Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Z d,d-�Z!d.S)/�Test_pygettextzTests for the pygettext.py toolZi18nzpygettext.pycCsNi}|�d�D]:}|r|�d�r"q|�d�}|�dd�\}}|��||<q|S)z: utility: return the header of a .po file as a dictionary �
)�#�msgidZmsgstr�"�:�)�split�
startswith�strip)�self�dataZheaders�line�key�val�r�>/opt/alt/python39/lib64/python3.9/test/test_tools/test_i18n.py�
get_headers
zTest_pygettext.get_headercCs�g}d}g}|�d�D]l}|rT|�d�r:|�|�d��n|�d�|��g}d}q|�d�r|td�d�}|�|�d��d}q|r�|�d�|��|S)z= utility: return all msgids in .po file as a list of strings Fr	rzmsgid NT)rr�appendr�join�len)rr�msgidsZ
reading_msgidZ	cur_msgidrrrr�
get_msgids s$

zTest_pygettext.get_msgidsc	Cs�d}td���}t|d��}|�|�Wd�n1s80Yt|jd|�td��}|��}Wd�n1sv0YWd�n1s�0Y|�|�S)z: utility: return all msgids extracted from module_content ztest_docstrings.pyN�wz-D�messages.pot)r�open�writer�script�readr)rZmodule_content�filename�cwd�fprrrr�extract_docstrings_from_str8s
(
Dz*Test_pygettext.extract_docstrings_from_strc	Cs�td���}t|j�td��}|��}Wd�n1s:0Y|�|�}|�d|�|�d|�|�d|�|�d|�|�d|�|�d|�|�d	|�|�d
|�|�d|�Wd�n1s�0YdS)z�Make sure the required fields are in the header, according to:
           http://www.gnu.org/software/gettext/manual/gettext.html#Header-Entry
        Nr zProject-Id-Version�POT-Creation-DatezPO-Revision-DatezLast-Translatorz
Language-TeamzMIME-VersionzContent-TypezContent-Transfer-EncodingzGenerated-By)rrr#r!r$r�assertIn)rr&r'r�headerrrr�test_headerCs


&
zTest_pygettext.test_headerZaixzbpo-29972: broken test on AIXc	Cs�ddlm}td���}t|j�td��}|��}Wd�n1sF0Y|�|�}|d}|�d�r~|dtd��}|�	|d�Wd�n1s�0YdS)z; Match the date format from xgettext for POT-Creation-Date r)�datetimeNr r)z\nz%Y-%m-%d %H:%M%z)
r-rrr#r!r$r�endswithr�strptime)rr-r&r'rr+ZcreationDaterrr�test_POT_Creation_Date]s


&

z%Test_pygettext.test_POT_Creation_Datec	CsVdD]L}|�|��.|�td|��}|�d|�Wd�q1sF0YqdS)N�z	"""doc"""z
r'''doc'''zR'doc'zu"doc"zE                def foo(bar):
                    %s
                �doc�ZsubTestr(rr*�rr2rrrr�test_funcdocstringps�z!Test_pygettext.test_funcdocstringcCs&|�td��}|�dd�|D��dS)Nz5        def foo(bar):
            b"""doc"""
        cSsg|]}d|vr|�qS�r2r��.0rrrr�
<listcomp>~�z;Test_pygettext.test_funcdocstring_bytes.<locals>.<listcomp>�r(r�assertFalse�rrrrr�test_funcdocstring_bytesysz'Test_pygettext.test_funcdocstring_bytescCs&|�td��}|�dd�|D��dS)Nz5        def foo(bar):
            f"""doc"""
        cSsg|]}d|vr|�qSr6rr7rrrr9�r:z=Test_pygettext.test_funcdocstring_fstring.<locals>.<listcomp>r;r=rrr�test_funcdocstring_fstring�sz)Test_pygettext.test_funcdocstring_fstringc	CsVdD]L}|�|��.|�td|��}|�d|�Wd�q1sF0YqdS)Nr1z@                class C:
                    %s
                r2r3r4rrr�test_classdocstring�s�z"Test_pygettext.test_classdocstringcCs&|�td��}|�dd�|D��dS)Nz0        class C:
            b"""doc"""
        cSsg|]}d|vr|�qSr6rr7rrrr9�r:z<Test_pygettext.test_classdocstring_bytes.<locals>.<listcomp>r;r=rrr�test_classdocstring_bytes�sz(Test_pygettext.test_classdocstring_bytescCs&|�td��}|�dd�|D��dS)Nz0        class C:
            f"""doc"""
        cSsg|]}d|vr|�qSr6rr7rrrr9�r:z>Test_pygettext.test_classdocstring_fstring.<locals>.<listcomp>r;r=rrr�test_classdocstring_fstring�sz*Test_pygettext.test_classdocstring_fstringcCs|�d�}|�d|�dS)Nz_("""doc""" r'str' u"ing")Z	docstring)r(r*r=rrr�
test_msgid�s�zTest_pygettext.test_msgidcCs"|�d�}|�dd�|D��dS)Nz
_(b"""doc""")cSsg|]}d|vr|�qSr6rr7rrrr9�r:z3Test_pygettext.test_msgid_bytes.<locals>.<listcomp>�r(r<r=rrr�test_msgid_bytes�s
zTest_pygettext.test_msgid_bytescCs"|�d�}|�dd�|D��dS)Nz
_(f"""doc""")cSsg|]}d|vr|�qSr6rr7rrrr9�r:z5Test_pygettext.test_msgid_fstring.<locals>.<listcomp>rDr=rrr�test_msgid_fstring�s
z!Test_pygettext.test_msgid_fstringcCs|�td��}|�d|�dS)z3 Test docstrings for functions with annotated args z9        def foo(bar: str):
            """doc"""
        r2N�r(rr*r=rrr�!test_funcdocstring_annotated_args�sz0Test_pygettext.test_funcdocstring_annotated_argscCs|�td��}|�d|�dS)z: Test docstrings for functions with annotated return type z;        def foo(bar) -> str:
            """doc"""
        r2NrGr=rrr�#test_funcdocstring_annotated_return�sz2Test_pygettext.test_funcdocstring_annotated_returncCs|�td��}|�d|�dS)z6 Test docstring for functions with default arg values z7        def foo(bar=()):
            """doc"""
        r2NrGr=rrr� test_funcdocstring_defvalue_args�sz/Test_pygettext.test_funcdocstring_defvalue_argscCs6|�td��}|�d|�|�d|�|�d|�dS)z� Test docstring extraction for multiple functions combining
        annotated args, annotated return types and default arg values
        z�        def foo1(bar: tuple=()) -> str:
            """doc1"""

        def foo2(bar: List[1:2]) -> (lambda x: x):
            """doc2"""

        def foo3(bar: 'func'=lambda x: x) -> {1: 2}:
            """doc3"""
        Zdoc1Zdoc2Zdoc3NrGr=rrr�!test_funcdocstring_multiple_funcs�s
z0Test_pygettext.test_funcdocstring_multiple_funcscCs|�td��}|�d|�dS)ze Test docstring extraction for a class with colons occurring within
        the parentheses.
        z\        class D(L[1:2], F({1: 2}), metaclass=M(lambda x: x)):
            """doc"""
        r2NrGr=rrr�test_classdocstring_early_colon�sz.Test_pygettext.test_classdocstring_early_colonc
Cs�d}d}d}td����td����}t�tj�|d��ttj�|dd�d��"}|�d|�d	��Wd�n1sv0Yt�tj�|d
��ttj�|d
d�d��"}|�d|�d	��Wd�n1s�0Yt�tj�|d��ttj�|dd
�d��"}|�d|�d	��Wd�n1�s00Yt|j	|�td��}|�
�}Wd�n1�sn0Y|�d|�d�|�|�d|�d�|�|�||�Wd�n1�s�0YWd�n1�s�0YdS)zVMake sure the directories are inspected for source files
           bpo-31920
        zText to translate1zText to translate2zText to ignoreNZpypkgzpymod.pyrz_(�)zpkg.pyz	pymod2.pyZCVSz	pymod3.pyr zmsgid "r)
rr�os�mkdir�pathrr!r"rr#r$r*ZassertNotIn)rZtext1Ztext2Ztext3ZsdirZsfiler'rrrr�test_files_list�s&002
(zTest_pygettext.test_files_listN)"�__name__�
__module__�__qualname__�__doc__rNrPrrr#rrr(r,�unittestZskipIf�sys�platformrr0r5r>r?r@rArBrCrErFrHrIrJrKrLrQrrrrrs2�
		
r)rUrNrWrV�textwraprZtest.support.script_helperrZtest.test_toolsrrZtest.supportrrZTestCaserrrrr�<module>s


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
22 Jul 2025 4.13 AM
root / linksafe
0755
__init__.cpython-39.opt-1.pyc
1.52 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
__init__.cpython-39.opt-2.pyc
1.443 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
__init__.cpython-39.pyc
1.52 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
__main__.cpython-39.opt-1.pyc
0.232 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
__main__.cpython-39.opt-2.pyc
0.232 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
__main__.cpython-39.pyc
0.232 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_fixcid.cpython-39.opt-1.pyc
2.837 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_fixcid.cpython-39.opt-2.pyc
2.792 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_fixcid.cpython-39.pyc
2.837 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_gprof2html.cpython-39.opt-1.pyc
1.404 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_gprof2html.cpython-39.opt-2.pyc
1.334 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_gprof2html.cpython-39.pyc
1.404 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_i18n.cpython-39.opt-1.pyc
9.563 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_i18n.cpython-39.opt-2.pyc
8.592 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_i18n.cpython-39.pyc
9.563 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_lll.cpython-39.opt-1.pyc
1.456 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_lll.cpython-39.opt-2.pyc
1.386 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_lll.cpython-39.pyc
1.456 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_md5sum.cpython-39.opt-1.pyc
3.399 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_md5sum.cpython-39.opt-2.pyc
3.333 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_md5sum.cpython-39.pyc
3.399 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_pathfix.cpython-39.opt-1.pyc
3.741 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_pathfix.cpython-39.opt-2.pyc
3.741 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_pathfix.cpython-39.pyc
3.741 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_pdeps.cpython-39.opt-1.pyc
1.281 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_pdeps.cpython-39.opt-2.pyc
1.216 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_pdeps.cpython-39.pyc
1.281 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_pindent.cpython-39.opt-1.pyc
8.423 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_pindent.cpython-39.opt-2.pyc
8.355 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_pindent.cpython-39.pyc
8.423 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_reindent.cpython-39.opt-1.pyc
1.53 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_reindent.cpython-39.opt-2.pyc
1.332 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_reindent.cpython-39.pyc
1.53 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_sundry.cpython-39.opt-1.pyc
1.849 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_sundry.cpython-39.opt-2.pyc
1.619 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
test_sundry.cpython-39.pyc
1.849 KB
19 Jun 2025 12.11 PM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF