o
    N=&b  ã                   @   sF   d Z dZddlmZ ddlmZmZ ddlmZ G dd„ dej	ƒZ	dS )	z+
Python Enhancement Proposal (PEP) Reader.
ZreStructuredTexté    )Ú
standalone)ÚpepsÚfrontmatter)Úrstc                   @   sB   e Zd ZdZ	 dZdZdZdd„ ZdddœZe	j
jZdd
d„Zd	S )ÚReader)Zpep)zPEP Reader Option DefaultszfThe --pep-references and --rfc-references options (for the reStructuredText parser) are on by default.© z
pep reader)Zreaderszstandalone readerc                 C   sJ   t j | ¡}| tj¡ | tj¡ | tj¡ | t	j
t	jt	jg¡ |S )N)r   r   Úget_transformsÚremover   ZDocTitleZSectionSubTitleZDocInfoÚextendr   ZHeadersZContentsZTargetNotes)ÚselfZ
transformsr   r   ú8usr/lib/python3.10/site-packages/docutils/readers/pep.pyr      s   zReader.get_transformsé   )Zpep_referencesZrfc_referencesNc                 C   s.   |du rt jd|  ¡ d}tj | |d¡ dS )z`parser` should be ``None``.NT)Zrfc2822ZinlinerÚ )r   ÚParserÚinliner_classr   r   Ú__init__)r   ÚparserZparser_namer   r   r   r   ,   s   zReader.__init__)NN)Ú__name__Ú
__module__Ú__qualname__Z	supportedZsettings_specZconfig_sectionZconfig_section_dependenciesr   Zsettings_default_overridesr   ZstatesZInlinerr   r   r   r   r   r   r      s    
	r   N)
Ú__doc__Z__docformat__Zdocutils.readersr   Zdocutils.transformsr   r   Zdocutils.parsersr   r   r   r   r   r   Ú<module>   s   