File: //proc/self/root/lib/python3.6/site-packages/docutils/readers/__pycache__/__init__.cpython-36.pyc
3
v�oQ�
� @ sv d Z dZddlZddlmZmZmZ ddlmZ ej dk rFddl
mZ G d d
� d
e�ZG dd� de�Z
i Zd
d� ZdS )z0
This package contains Docutils Reader modules.
ZreStructuredText� N)�utils�parsers� Component)� universal� � )�
__import__c @ sJ e Zd ZdZdZdZdd� Zddd�Zd d
� Zdd� Z d
d� Z
dd� ZdS )�Readerz�
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 `scan()` and
`parse()`. Call `read()` to process a document.
�readerZreadersc C s t j| �tjtjtjg S )N)r �get_transformsr ZDecorationsZExposeInternalsZ
StripComments)�self� r
�/usr/lib/python3.6/__init__.pyr ! s zReader.get_transformsNc C s, || _ |dkr|r| j|� 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_namer
r
r �__init__'