o gJ^Æã@s6dZdZddlZddlmZGdd„deƒZeƒZdS)zT This package contains modules for language-dependent features of reStructuredText. ÚreStructuredTextéN)ÚLanguageImporterc@s$eZdZdZdZdZdZdd„ZdS)ÚRstLanguageImportera9Import 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. )zdocutils.parsers.rst.languages.Úz-rST localisation for language "%s" not found.NcCs t|jtƒr t|jtƒst‚dS)z'Check if we got an rST language module.N)Ú isinstanceÚ directivesÚdictÚrolesÚ ImportError)ÚselfÚmodule©r úI/usr/lib/python3/dist-packages/docutils/parsers/rst/languages/__init__.pyÚ check_content!s  ÿþz!RstLanguageImporter.check_content)Ú__name__Ú __module__Ú __qualname__Ú__doc__ÚpackagesÚwarn_msgÚfallbackrr r r rrs   r)rÚ __docformat__ÚsysÚdocutils.languagesrrÚ get_languager r r rÚs