U å€C^ã@sNdZdZddlmZddlmZmZmZmZddl m Z Gdd„dej ƒZ dS) z+ Python Enhancement Proposal (PEP) Reader. ZreStructuredTexté)Ú 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-install-6_kvzl1k/docutils/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 rrs rN) Ú__doc__Z __docformat__Zdocutils.readersrZdocutils.transformsrrrrZdocutils.parsersrrr r r rÚs