
    N&i$                        d Z ddlZddlmZ dZdZ	  G d d edd                    Z edd	d
ddd          Z	 dZ	  G d de	          Z
 G d de
          Z G d de          Z G d d          Z G d dee          ZdS )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)
namedtuplereStructuredTextz0.18.1c                   <     e Zd Z	 	 d	 fd	Zd Zd Zd Zd Z xZS )
VersionInfor   finalTc           	          d}||vrt          d|d          |dk    r&|st          d          |dk    rt          d          t          t          |                               | ||||||          S )N)alphabeta	candidater   zreleaselevel must be one of .r   z{releaselevel "final" must not be used with development versions (leads to wrong version ordering of the related __version__r   z%"serial" must be 0 for final releases)
ValueErrorsuperr   __new__)	clsmajorminormicroreleaselevelserialreleasereleaselevels	__class__s	           ^/home/geonatureadmin/si_en_reseau/tutos/venv/lib/python3.11/site-packages/docutils/__init__.pyr   zVersionInfo.__new__K   s    ?},,* -1 2 2 27"" L  "K L L L {{ !HIII[#&&..sE5%/;VWN N 	N    c                 t    t          |t                    r	t          | }t                              | |          S N)
isinstancetupler   __lt__selfothers     r   r   zVersionInfo.__lt__\   2    eU## 	('E||D%(((r   c                 t    t          |t                    r	t          | }t                              | |          S r   )r   r   r   __gt__r    s     r   r%   zVersionInfo.__gt__a   r#   r   c                 t    t          |t                    r	t          | }t                              | |          S r   )r   r   r   __le__r    s     r   r'   zVersionInfo.__le__f   r#   r   c                 t    t          |t                    r	t          | }t                              | |          S r   )r   r   r   __ge__r    s     r   r)   zVersionInfo.__ge__k   r#   r   )r   r   r   r   r   T)	__name__
__module____qualname__r   r   r%   r'   r)   __classcell__)r   s   @r   r   r   H   s         ./8<N N N N N N") ) )
) ) )
) ) )
) ) ) ) ) ) )r   r   z-major minor micro releaselevel serial release      r   T)r   r   r   r   r   r   r   c                       e Zd ZdS )ApplicationErrorNr*   r+   r,    r   r   r1   r1                r   r1   c                       e Zd ZdS )	DataErrorNr2   r3   r   r   r6   r6      r4   r   r6   c                   4    e Zd ZdZdZ	 dZ	 dZ	 dZ	 dZ	 dZ	dS )SettingsSpecz
    Runtime setting specification base class.

    SettingsSpec subclass objects used by `docutils.frontend.OptionParser`.
    r3   N)
r*   r+   r,   __doc__settings_specsettings_defaultssettings_default_overridesrelative_path_settingsconfig_sectionconfig_section_dependenciesr3   r   r   r8   r8      sf          M$L  "&=   N: #' r   r8   c                        e Zd ZdZd ZdZdZdS )TransformSpecz
    Runtime transform specification base class.

    TransformSpec subclass objects used by `docutils.transforms.Transformer`.
    c                     | j         dk    r3ddl}|                    dt                     t	          | j                   S g S )z;Transforms required by this class.  Override in subclasses.r3   r   NzwTransformSpec: the "default_transforms" attribute will be removed in Docutils 1.1.
Use get_transforms() method instead.)default_transformswarningswarnDeprecationWarninglist)r!   rD   s     r   get_transformszTransformSpec.get_transforms   sR    "b((OOOMM A -. . . /000	r   r3   N)r*   r+   r,   r9   rH   rC   unknown_reference_resolversr3   r   r   rA   rA      s;         	 	 	 "$ r   rA   c                   $    e Zd ZdZdZ	 dZ	 d ZdS )	Componentz#Base class for Docutils components.Nr3   c                     || j         v S )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)r!   formats     r   supportszComponent.supports
  s     ''r   )r*   r+   r,   r9   component_typerM   rO   r3   r   r   rK   rK      s=        --N I<( ( ( ( (r   rK   )r9   syscollectionsr   __docformat____version__r   __version_info____version_details__	Exceptionr1   r6   objectr8   rA   rK   r3   r   r   <module>rY      s  
. .` 


 " " " " " " #&) &) &) &) &)**]LN N &) &) &)P ;


      
 ( ' ' ' 'y ' ' ' ' ' ' ' '  ' ' 'F F F F F6 F F FR, , , , , , , ,^( ( ( ( (m ( ( ( ( (r   