3 E\@sNdZdZddlmZddlmZmZmZmZddl m Z Gdddej Z dS) z+ Python Enhancement Proposal (PEP) Reader. ZreStructuredText) standalone)peps referencesmisc frontmatter)rstc@sFeZdZdZddffZdZdZddZd d d Ze j j Z dd d Z d S)ReaderpepzPEP Reader Option DefaultszfThe --pep-references and --rfc-references options (for the reStructuredText parser) are on by default.z pep readerreadersstandalone readercCsJtjj|}|jtj|jtj|jtj|jt j t j t j g|S)N) rrget_transformsremoverZDocTitleZSectionSubTitleZDocInfoextendrZHeadersZContentsZ TargetNotes)selfZ transformsrn/private/var/folders/pf/wv4htv3x0qs2c2mp0dnn0kchsvlck3/T/pip-install-emcbgzcf/docutils/docutils/readers/pep.pyr s     zReader.get_transforms)Zpep_referencesZrfc_referencesNcCs.|dkrtjd|jd}tjj||ddS)z`parser` should be ``None``.NT)Zrfc2822Zinliner)rParser inliner_classrr__init__)rparser 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.parsersrrrrrrs