관리-도구
편집 파일: __init__.cpython-311.pyc
� P�Dg� � �| � 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)�utils�parsers� Component)� universalc �J � � e Zd ZdZdZdZ� fd�Zdd�Zd� 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. �reader�readersc � �� t � � � � � t j t j t j gz S �N)�super�get_transformsr �Decorations�ExposeInternals� StripComments)�self� __class__s ��y/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/docutils/readers/__init__.pyr zReader.get_transforms s9 �� ��w�w�%�%�'�'�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_parser�source�input)r r �parser_names r �__init__zReader.__init__% sI � � ��� E� �>�k�>��O�O�K�(�(�(����<��� � $� $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# � ��/��<�<��"�l�n�n����r c � � || _ | j s|| _ || _ | j � � � | _ | � � � | j S r )r r �settings�readr �parse�document)r r r r# s r r$ zReader.read@ sK � �����{� !� �D�K� �� ��[�%�%�'�'�� �� � �����}�r c � � | � � � x| _ }| j � | j |� � dx|_ |_ dS )z(Parse `self.input` into a document tree.N)�new_documentr&