
    dd                     <    d Z dZddlmZ  G d de      Z e       Zy)zT
This package contains modules for language-dependent features of
reStructuredText.
reStructuredText    )LanguageImporterc                   "    e Zd ZdZdZdZdZd Zy)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                 x    t        |j                  t              rt        |j                  t              st        y)z'Check if we got an rST language module.N)
isinstance
directivesdictrolesImportError)selfmodules     I/usr/lib/python3/dist-packages/docutils/parsers/rst/languages/__init__.pycheck_contentz!RstLanguageImporter.check_content!   s+    6,,d3v||T2 3    )__name__
__module____qualname____doc__packageswarn_msgfallbackr    r   r   r   r      s     7H>HHr   r   N)r   __docformat__docutils.languagesr   r   get_languager   r   r   <module>r      s-   
 # 0* * #$r   