B ý`cã@sNdZdZddlmZddlmZmZmZmZddl m Z Gdd„dej ƒZ dS) z+ Python Enhancement Proposal (PEP) Reader. ÚreStructuredTexté)Ú standalone)ÚpepsÚ referencesÚmiscÚ frontmatter)Úrstc@s@eZdZdZdZdZdZdd„ZdddœZe j j Z d d 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 readercCsJtj |¡}| tj¡| tj¡| tj¡| t j t j t j g¡|S)N) rr Úget_transformsÚremoverZDocTitleZSectionSubTitleZDocInfoÚextendrZHeadersZContentsZ TargetNotes)ÚselfZ transformsr r ú;/tmp/pip-target-ywh1gcq3/lib/python/docutils/readers/pep.pyr s     zReader.get_transformsé)Zpep_referencesZrfc_referencesNcCs.|dkrtjd| ¡d}tj ||d¡dS)z`parser` should be ``None``.NT)Zrfc2822ZinlinerÚ)rÚParserÚ inliner_classrr Ú__init__)rÚparserÚ parser_namer r rr,szReader.__init__)NN)Ú__name__Ú __module__Ú __qualname__Ú supportedZ settings_specZconfig_sectionZconfig_section_dependenciesr Zsettings_default_overridesrZstatesZInlinerrrr r r rr s r N) Ú__doc__Ú __docformat__Zdocutils.readersrZdocutils.transformsrrrrZdocutils.parsersrr r r r rÚs