| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/docutils/languages/__pycache__/ |
Upload File : |
a
OԼaV � @ sB d Z dZddlZddlmZ ddlmZ G dd� de�Ze� Z dS )zL
This package contains modules for language-dependent features of Docutils.
ZreStructuredText� 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.9/site-packages/docutils/languages/__init__.py�__init__# s zLanguageImporter.__init__Nc
C s| d}| j D ]l}zt|| �}| �|� W nH ttfyp |rR|rR|�d| � n|rh|�d|| � Y q
Y n0 qxq
|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&