N ܟh | d Z dZddlmZ ddlmZmZmZ ddlm Z G d de Z G d d e Zi Zd Z dS )z0 This package contains Docutils Reader modules. reStructuredText ) import_module)utilsparsers Component) universalc J e Zd ZdZdZdZ fdZddZd Zd Z d Z d Z xZS )Readera9 Abstract base class for docutils Readers. Each reader module or package must export a subclass also called 'Reader'. The two steps of a Reader's responsibility are to read data from the source Input object and parse the data with the Parser object. Call `read()` to process a document. readerreadersc t t j t j t j gz S N)superget_transformsr DecorationsExposeInternals StripComments)self __class__s y/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/docutils/readers/__init__.pyr zReader.get_transforms s9 ww%%''9+@+4+D+4+B+D D D Nc f || _ ||r| | d| _ d| _ dS )z Initialize the Reader instance. Several instance attributes are defined with dummy initial values. Subclasses may use these attributes as they wish. N)parser set_parsersourceinput)r r parser_names r __init__zReader.__init__% sI E >k>OOK(((< $ $r c L t j | } | | _ dS )zSet `self.parser` by name.N)r get_parser_classr )r r parser_classs r r zReader.set_parser; s# /<<"lnnr c || _ | j s|| _ || _ | j | _ | | j S r )r r settingsreadr parsedocument)r r r r# s r r$ zReader.read@ sK { ! DK [%%'' }r c | x| _ }| j | j | dx|_ |_ dS )z(Parse `self.input` into a document tree.N)new_documentr&