3

T'ícã@sNdZdZddlmZddlmZmZmZmZddl	m
Z
Gdd„dejƒZdS)	z+
Python Enhancement Proposal (PEP) Reader.
ZreStructuredTexté)Ú
standalone)ÚpepsÚ
referencesÚmiscÚfrontmatter)Úrstc@sFeZdZdZddffZdZdZdd„Zd	d	d
œZe	j
jZddd
„Z
dS)ÚReaderÚpepzPEP Reader Option DefaultszfThe --pep-references and --rfc-references options (for the reStructuredText parser) are on by default.z
pep readerÚreadersústandalone readercCsJtjj|ƒ}|jtjƒ|jtjƒ|jtjƒ|jt	j
t	jt	jgƒ|S)N)
rrÚget_transformsÚremoverZDocTitleZSectionSubTitleZDocInfoÚextendrZHeadersZContentsZTargetNotes)ÚselfZ
transforms©rú8/tmp/pip-build-gk9425m9/docutils/docutils/readers/pep.pyrszReader.get_transformsé)Zpep_referencesZrfc_referencesNcCs.|dkrtjd|jƒd}tjj||dƒdS)z`parser` should be ``None``.NT)Zrfc2822ZinlinerÚ)rÚParserÚ
inliner_classrrÚ__init__)rÚparserÚparser_namerrrr,szReader.__init__)r	)r
r)NN)Ú__name__Ú
__module__Ú__qualname__Ú	supportedZ
settings_specZconfig_sectionZconfig_section_dependenciesrZsettings_default_overridesrZstatesZInlinerrrrrrrrs	
rN)Ú__doc__Z
__docformat__Zdocutils.readersrZdocutils.transformsrrrrZdocutils.parsersrrrrrrÚ<module>s