| Server IP : 89.117.53.150 / Your IP : 216.73.216.11 Web Server : Apache System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : iscmbt-kufa-atu ( 1014) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/docutils/languages/__pycache__/ |
Upload File : |
o
gJ^V � @ sB d Z dZddlZddlmZ ddlmZ G dd� de�Ze� Z dS )zL
This package contains modules for language-dependent features of Docutils.
�reStructuredText� N)�
import_module)�normalize_language_tagc @ s@ e Zd ZdZdZdZdZdd� Zddd �Zd
d� Z ddd
�Z
dS )�LanguageImportera Import language modules.
When called with a BCP 47 language tag, instances return a module
with localisations from `docutils.languages` or the PYTHONPATH.
If there is no matching module, warn (if a `reporter` is passed)
and fall back to English.
)zdocutils.languages.� zHLanguage "%s" not supported: Docutils-generated text will be in English.�enc C s
i | _ d S �N)�cache)�self� r �=/usr/lib/python3/dist-packages/docutils/languages/__init__.py�__init__# s
zLanguageImporter.__init__Nc
C sv d}| j D ]3}zt|| �}| �|� W |S ttfy8 |r+|r+|�d| � n|r6|�d|| � Y qw |S )z/Try loading module `name` from `self.packages`.Nz+%s is no complete Docutils language module.zModule "%s" not found.)�packagesr �
check_content�ImportError�AttributeError�info)r
�name�reporter�module�packager r r �import_from_packages&