o
    N iÆ  ã                   @   s.   d Z dZddlmZ G dd„ deƒZeƒ ZdS )zT
This package contains modules for language-dependent features of
reStructuredText.
ÚreStructuredTexté    )ÚLanguageImporterc                   @   s$   e Zd ZdZdZdZdZdd„ ZdS )ÚRstLanguageImportera9  Import language modules.

    When called with a BCP 47 language tag, instances return a module
    with localisations for "directive" and "role" names for  from
    `docutils.parsers.rst.languages` or the PYTHONPATH.

    If there is no matching module, warn (if a `reporter` is passed)
    and return None.
    )zdocutils.parsers.rst.languages.Ú z-rST localisation for language "%s" not found.Nc                 C   s    t |jtƒrt |jtƒst‚dS )z'Check if we got an rST language module.N)Ú
isinstanceÚ
directivesÚdictÚrolesÚImportError)ÚselfÚmodule© r   ú[/home/ubuntu/.local/lib/python3.10/site-packages/docutils/parsers/rst/languages/__init__.pyÚcheck_content!   s
   
ÿþz!RstLanguageImporter.check_content)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚpackagesÚwarn_msgÚfallbackr   r   r   r   r   r      s    	r   N)r   Ú__docformat__Údocutils.languagesr   r   Úget_languager   r   r   r   Ú<module>   s
   
