403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/docutils/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/docutils/__pycache__/examples.cpython-39.opt-1.pyc
a

OԼaw�@s6dZddlmZmZd
dd�Zdd	d
�Zddd�ZdS)a1
This module contains practical examples of Docutils client code.

Importing this module from client code is not recommended; its contents are
subject to change in future Docutils releases.  Instead, it is recommended
that you copy and paste the parts you need into your own code, modifying as
necessary.
�)�core�ioN�unicodeT�cCs$|||d�}tj|||d|d�}|S)a
    Given an input string, returns a dictionary of HTML document parts.

    Dictionary keys are the names of parts, and values are Unicode strings;
    encoding is up to the client.

    Parameters:

    - `input_string`: A multi-line text string; required.
    - `source_path`: Path to the source file or object.  Optional, but useful
      for diagnostic output (system messages).
    - `destination_path`: Path to the file or object which will receive the
      output; optional.  Used for determining relative paths (stylesheets,
      source links, etc.).
    - `input_encoding`: The encoding of `input_string`.  If it is an encoded
      8-bit string, provide the correct encoding.  If it is a Unicode string,
      use "unicode", the default.
    - `doctitle`: Disable the promotion of a lone top-level section title to
      document title (and subsequent section title to document subtitle
      promotion); enabled by default.
    - `initial_header_level`: The initial level for header elements (e.g. 1
      for "<h1>").
    )�input_encodingZdoctitle_xform�initial_header_levelZhtml)�source�source_path�destination_path�writer_name�settings_overrides)rZ
publish_parts)�input_stringr	r
r�doctitler�	overrides�parts�r�5/usr/lib/python3.9/site-packages/docutils/examples.py�
html_partss��rc	Cs2t||||||d�}|d}|dkr.|�|�}|S)aE
    Given an input string, returns an HTML fragment as a string.

    The return value is the contents of the <body> element.

    Parameters (see `html_parts()` for the remainder):

    - `output_encoding`: The desired encoding of the output.  If a Unicode
      string is desired, use the default value of "unicode" .
    )r
r	r
rrr�	html_bodyr)r�encode)	r
r	r
rZoutput_encodingrrr�fragmentrrrr4s
�
rcCsZ|r|��}ni}||d<tjtj||tjd|dddddddd|ddd�\}}|jj|fS)zx
    Return the document tree and publisher, for exploring Docutils internals.

    Parameters: see `html_parts()`.
    rNZ
standaloneZrestructuredtextZnull)Zsource_classrr	Zdestination_classZdestinationr
�readerZreader_name�parser�parser_name�writerrZsettingsZ
settings_specrZconfig_sectionZenable_exit_status)�copyrZpublish_programmaticallyrZStringInputZ
NullOutputrZdocument)r
r	r
rrr�outputZpubrrr�	internalsKs 
�

r)NNrTr)NNrrTr)NNrN)�__doc__Zdocutilsrrrrrrrrr�<module>s	�
#�
�

Youez - 2016 - github.com/yon3zu
LinuXploit