Your IP : 216.73.216.213
B
�O � @ sN d Z dZddlmZ ddlmZmZmZmZ ddl m
Z
G dd� dej�ZdS ) z+
Python Enhancement Proposal (PEP) Reader.
ZreStructuredText� )�
standalone)�peps�
references�misc�frontmatter)�rstc @ s@ e Zd ZdZdZdZdZdd� Zddd�Ze j
jZdd
d�Z
d S )
�Reader)Zpep)zPEP Reader Option DefaultszfThe --pep-references and --rfc-references options (for the reStructuredText parser) are on by default.� z
pep reader)Zreaderszstandalone readerc C sJ t j�| �}|�tj� |�tj� |�tj� |�t j
t jt jg� |S )N)
r r �get_transforms�remover ZDocTitleZSectionSubTitleZDocInfo�extendr ZHeadersZContentsZTargetNotes)�selfZ
transformsr r �E/opt/alt/python37/lib/python3.7/site-packages/docutils/readers/pep.pyr
s zReader.get_transforms� )Zpep_referencesZrfc_referencesNc C s. |dkrt jd| �� d�}tj�| |d� dS )z`parser` should be ``None``.NT)Zrfc2822Zinliner� )r �Parser�
inliner_classr r �__init__)r
�parserZparser_namer r r r , s zReader.__init__)NN)�__name__�
__module__�__qualname__Z supportedZ
settings_specZconfig_sectionZconfig_section_dependenciesr
Zsettings_default_overridesr ZstatesZInlinerr r r r r r r s
r N)�__doc__Z
__docformat__Zdocutils.readersr Zdocutils.transformsr r r r Zdocutils.parsersr r r r r r �<module> s