o f'ha&@sdZddlZddlmZdZdZ GdddeddZedd d d dd d Z dZ Gddde Z Gddde Z Gddde Z GdddZGddde eZddlZdZer`ddZdSddZdS)a] This is the Docutils (Python Documentation Utilities) package. Package Structure ================= Modules: - __init__.py: Contains component base classes, exception classes, and Docutils version information. - core.py: Contains the ``Publisher`` class and ``publish_*()`` convenience functions. - frontend.py: Runtime settings (command-line interface, configuration files) processing, for Docutils front-ends. - io.py: Provides a uniform API for low-level input and output. - nodes.py: Docutils document tree (doctree) node class library. - statemachine.py: A finite state machine specialized for regular-expression-based text filters. Subpackages: - languages: Language-specific mappings of terms. - parsers: Syntax-specific input parser modules or packages. - readers: Context-specific input handlers which understand the data source and manage a parser. - transforms: Modules used by readers and writers to modify DPS doctrees. - utils: Contains the ``Reporter`` system warning class and miscellaneous utilities used by readers, writers, and transforms. utils/urischemes.py: Contains a complete mapping of known URI addressing scheme names to descriptions. - utils/math: Contains functions for conversion of mathematical notation between different formats (LaTeX, MathML, text, ...). - writers: Format-specific output translators. N) namedtuplereStructuredTextz0.17.1csBeZdZ  dfdd ZddZdd Zd d Zd d ZZS) VersionInforfinalTc sZd}||vr td|f|dkr|std|dkrtdtt||||||||S)N)alphabeta candidaterzreleaselevel must be one of %r.rz{releaselevel "final" must not be used with development versions (leads to wrong version ordering of the related __version__rz%"serial" must be 0 for final releases) ValueErrorsuperr__new__)clsmajorminormicro releaselevelserialrelease releaselevels __class__3/usr/lib/python3/dist-packages/docutils/__init__.pyr KszVersionInfo.__new__cCt|tr t|}t||SN) isinstancetupler__lt__selfotherrrrr\  zVersionInfo.__lt__cCrr)rrr__gt__rrrrr!ar zVersionInfo.__gt__cCrr)rrr__le__rrrrr"fr zVersionInfo.__le__cCrr)rrr__ge__rrrrr#kr zVersionInfo.__ge__)rrrrrT) __name__ __module__ __qualname__r rr!r"r# __classcell__rrrrrHsrz-major minor micro releaselevel serial releaserT)r rrrrrrc@ eZdZdS)ApplicationErrorNr$r%r&rrrrr+ r+c@r*) DataErrorNr,rrrrr.r-r.c@s2eZdZdZdZ dZ dZ dZ dZ dZ dS) SettingsSpecz Runtime setting specification base class. SettingsSpec subclass objects used by `docutils.frontend.OptionParser`. rN) r$r%r&__doc__ settings_specsettings_defaultssettings_default_overridesrelative_path_settingsconfig_sectionconfig_section_dependenciesrrrrr/s&r/c@s eZdZdZddZdZdZdS) TransformSpecz Runtime transform specification base class. TransformSpec subclass objects used by `docutils.transforms.Transformer`. cCs,|jdkrddl}|dtt|jSgS)z;Transforms required by this class. Override in subclasses.rrNzMdefault_transforms attribute deprecated. Use get_transforms() method instead.)default_transformswarningswarnDeprecationWarninglist)rr9rrrget_transformss  zTransformSpec.get_transformsrN)r$r%r&r0r=r8unknown_reference_resolversrrrrr7s  r7c@s$eZdZdZdZ dZ ddZdS) Componentz#Base class for Docutils components.NrcCs ||jvS)z Is `format` supported by this component? To be used by transforms to ask the dependent component if it supports a certain input context or output format. ) supported)rformatrrrsupports s zComponent.supports)r$r%r&r0component_typer@rBrrrrr?s r? cCsZtj|}tjtjtd}||sJd||f|t|d}tjd|S)Nz%r doesn't start with %rz/usr/share/docutils/)ospathdirnamejoin__file__ startswithlen)rGrHprefixsuffixrrr_datadirs rOcCs tj|Sr)rFrGrH)rGrrrrOs )r0sys collectionsr __docformat__ __version__r__version_info____version_details__ Exceptionr+r.objectr/r7r?rF_debian_packagerOrrrrs<0  ( I.