Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
lib
/
python3
/
dist-packages
/
docutils
/
__pycache__
/
Filename :
core.cpython-310.pyc
back
Copy
o �?�]�s � @ s� d Z ddlmZ dZddlZddlZddlmZmZm Z ddlm Z mZmZm Z mZ ddlmZ ddlmZ dd lmZmZ ddlZG d d� de�ZdZd Zddddddddddddeefdd�Z d#dd�Z d$dd�Zdejddddddddddddfdd�Zdejdddddddddfdd�Z d%dd�Z!ddddddddddddeedej"fdd �Z#d!d"� Z$dS )&a� Calling the ``publish_*`` convenience functions (or instantiating a `Publisher` object) with component names will result in default behavior. For custom behavior (setting component options), create custom component objects first, and pass *them* to ``publish_*``/`Publisher`. See `The Docutils Publisher`_. .. _The Docutils Publisher: http://docutils.sf.net/docs/api/publisher.html � )�print_function�reStructuredTextN)�__version__�__version_details__�SettingsSpec)�frontend�io�utils�readers�writers)�OptionParser)�Transformer)�ErrorOutput�ErrorStringc @ s� e Zd ZdZddddejdejdfdd�Zdd� Zdd� Z d d � Z d&dd�Z d&d d�Zdd� Z d'dd�Zd(dd�Zd(dd�Zd(dd�Zdd� Z d)dd�Zdd� Zd d!� Zd"d#� Zd$d%� ZdS )*� PublisherzK A facade encapsulating the high-level logic of a Docutils system. Nc C s� d| _ || _ || _ || _ dD ]} tt| | �t�r(J dt| | �| | f ��q|| _ || _ || _ || _ || _ t� | _ dS )z� Initial setup. If any of `reader`, `parser`, or `writer` are not specified, the corresponding ``set_...`` method should be called with a component name (`set_reader` sets the parser as well). N)�reader�parser�writerz�passed string "%s" as "%s" parameter; pass an instance, or use the "%s_name" parameter instead (in docutils.core.publish_* convenience functions).)�documentr r r � isinstance�getattr�str�source�source_class�destination�destination_class�settingsr �_stderr) �selfr r r r r r r r � component� r �//usr/lib/python3/dist-packages/docutils/core.py�__init__! s2 ��zPublisher.__init__c C s$ t �|�}|||�| _| jj| _dS )zSet `self.reader` by name.N)r �get_reader_classr r )r �reader_namer �parser_name�reader_classr r r! � set_readerQ s zPublisher.set_readerc C s t �|�}|� | _dS )zSet `self.writer` by name.N)r �get_writer_classr )r �writer_name�writer_classr r r! � set_writerW s zPublisher.set_writerc C sb | j d u r | �|| j|� | jd u r#| j jd u r| j �|� | j j| _| jd u r/| �|� d S d S �N)r r'