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__/frontend.cpython-39.opt-2.pyc
a

OԼȃ�@s�dZddlZddlZddlZddlZddlZddlZddlmZejdkrdddl	m
Z
ddlmZnddlm
Z
ddlm
ZddlZddlZddlZddlmZmZmZmZejdkr�eZd	d
�Zdd�Zd7d
d�Zd8dd�Zd9dd�Zd:dd�Zd;dd�Zd<dd�Zd=dd�Z d>dd�Z!d?dd�Z"d@dd �Z#dAd!d"�Z$dBd#d$�Z%dCd%d&�Z&dDd'd(�Z'd)d*�Z(d+d,�Z)Gd-d.�d.ej*�Z*Gd/d0�d0ej+�Z+Gd1d2�d2ej,ej-�Z,Gd3d4�d4e
�ZGd5d6�d6e.�Z/dS)EZreStructuredText�N)�
SUPPRESS_HELP��r)�RawConfigParser)�getcwd)�getcwdu)�locale_encoding�
SafeString�ErrorOutput�ErrorStringcOs<|D]}t|j|d�q|��D]\}}t|j||�q dS�N)�setattr�values�items)�option�opt�value�parser�args�kwargsZ	attribute�key�r�5/usr/lib/python3.9/site-packages/docutils/frontend.py�store_multiple8src
CsPz|�|�}Wn.ty<}z|�|�WYd}~n
d}~00|j�||�dSr)�get_config_file_settings�
ValueError�errorr�update)rrrrZnew_settingsrrrr�read_config_fileDs
 rcCs6zt�|�Wn"ty0td||f��Yn0|S)Nz$setting "%s": unknown encoding: "%s")�codecs�lookup�LookupError��settingr�
option_parser�
config_parser�config_sectionrrr�validate_encodingNs�r'cCs2zt�|�Wnty,td|��Yn0|S)Nz�unknown encoding error handler: "%s" (choices: "strict", "ignore", "replace", "backslashreplace", "xmlcharrefreplace", and possibly others; see documentation for the Python ``codecs`` module))r�lookup_errorr!r"rrr�validate_encoding_error_handlerWs��
r)cCsnd|vrV|�d�\}}t|d||||�|rB|�||d|�qZt|j|d|�n|}t|||||�|S)N�:Z_error_handler)�splitr)�setr
rr')r#rr$r%r&�encodingZhandlerrrr�#validate_encoding_and_error_handlercs 
���r.cCsFt|t�r|Sz|j|����WSty@td|��Yn0dS)Nzunknown boolean value: "%s")�
isinstance�bool�booleans�strip�lower�KeyErrorr!r"rrr�validate_booleanys
r5cCsFt|t�s|dur|Sz|j|����WSty@|YS0dSr)r/r0r1r2r3r4r"rrr�validate_ternary�sr6cCst|�}|dkrtd��|S)Nrz(negative value; must be positive or zero)�intrr"rrr�validate_nonnegative_int�sr8cCsZz
t|�WStyTz|j|��WYSttfyNtd|��Yn0Yn0dS)Nzunknown threshold: %r.)r7r�
thresholdsr3r4�AttributeErrorr!r"rrr�validate_threshold�s
r;cCs2t|t�s|�d�}n|��}|�|�d��|S)Nr*)r/�listr+�pop�extend)r#rr$r%r&�lastrrr�$validate_colon_separated_string_list�s

r@cCs:t|t�s|g}|��}dd�|�d�D�}|�|�|S)NcSs g|]}|�d�r|�d��qS)z 	
�r2)�.0�irrr�
<listcomp>��z1validate_comma_separated_list.<locals>.<listcomp>�,)r/r<r=r+r>)r#rr$r%r&r?rrrr�validate_comma_separated_list�s

rGcCs"|sdS|�d�r|S|dSdS)Nz./�/)�endswithr"rrr�validate_url_trailing_slash�s

rJcCs2ztj�|�WSty,tj�d�YS0dSr)�docutils�utils�DependencyList�IOErrorr"rrr�validate_dependency_file�srOcCsBt|||||�}|D](}tj�|�}||krtd||f��q|S)Nz$Invalid class value %r (perhaps %r?))rGrKZnodesZmake_idr)r#rr$r%r&�clsZ
normalizedrrr�validate_strip_class�s��rQc

Cs�t|||||�}g}|D]�}z|�dd�\}}WnDtyP|�|�YqYn&tyttd|�dd���Yn0|��}|�d�}	t|	�dkr�|	}n t|�dkr�td|�dd���|�||f�q|S)Nr*�z4Invalid value "%s". Format is "<language>:<quotes>".�ascii�backslashreplace�z[Invalid value "%s". Please specify 4 quotes
    (primary open/close; secondary open/close).)rGr+r:�appendr�encoder2�len)
r#rr$r%r&Z	lc_quotes�item�langZquotesZmultichar_quotesrrr�validate_smartquotes_locales�s0�

�

�r[cs`�durt��|D]H}||vr||}t|t�rD�fdd�|D�}n|rRt�|�}|||<qdS)Ncsg|]}t�|��qSr)�make_one_path_absolute)rB�path��	base_pathrrrDs�z'make_paths_absolute.<locals>.<listcomp>)rr/r<r\)Zpathdict�keysr_rrrr^r�make_paths_absolute�s

�
racCstj�tj�||��Sr)�osr]�abspath�join)r_r]rrrr\sr\cOs�t|�}tdt|�d�D]h}g}||D]J}dd�|dD�d}||vrLq(||��vrh|�||�q(|�|�q(t|�||<qt|�S)N�rcSs*g|]"}|�d�r|dd��dd��qS)z--reN�-�_)�
startswith�replace)rBZ
opt_stringrrrrD$s
�z(filter_settings_spec.<locals>.<listcomp>rRr)r<�rangerXr`rV�tuple)�
settings_specZexcluderi�settingsrCZnewoptsZopt_specZopt_namerrr�filter_settings_specs 
��rnc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�ValuescOs>tjj|g|�Ri|��t|d�r.|jdur:tj��|_dS)N�record_dependencies)�optparsero�__init__�hasattrrprKrLrM��selfrrrrrrr9s

�zValues.__init__cCsht|t�r|j}|��}|j��D]6}t||�r"||vr"t||�}|r"|||7}||=q"|�|�dSr)	r/ro�__dict__�copy�listsr`rs�getattrZ
_update_loose)ruZ
other_dictr$r#rrrrr@s

z
Values.updatecCs|j|jd�S)N)�defaults)�	__class__rv)rurrrrwLszValues.copycCs&t||d�durt|||�t||�Sr)ryr
)ru�name�defaultrrr�
setdefaultPszValues.setdefaultN)�__name__�
__module__�__qualname__rrrrwr~rrrrro2sroc@s$eZdZejjddgZdd�ZdS)�Option�	validator�	overridesc	
Cs�tj�|||||�}|j}|r�|jr�t||�}z|�|||�}Wn:tyz}z"t�d|t|�f��WYd}~n
d}~00t	|||�|j
r�t	||j
d�|S)NzError in option "%s":
    %s)rqr��process�destr�ry�	ExceptionZOptionValueErrorrr
r�)	rurrrr�resultr#�	new_valuerrrrr�\s"

��zOption.processN)rr�r�rqr�ZATTRSr�rrrrr�Xsr�c8@sreZdZgd�Zd��Zdddddd�Zd	d	d	d	d
d
d
d
d
d�	Zee	j
dd
�pTepTdZdZ
dd
ddgifdddgded�fddgddd�fdddgd d!d"d#�fd$d%d&gd d'd"d#�fd(d)gd d
d"d#�fd*d+d,gded�fd-d.gd/d0ifd1d2gd3ed4d5�fd6d7gd8d d9d9d:�fd;d<gd8d d=d>�fd?d@gd8ddA�fdBdCgddedD�fdEdFgdGddA�fdHdIgddJdedK�fdLdMgddJd�fdNdOgded�fdPdQgddRd�fdSdTgdUdVdWedX�fdYdZgdUd[dWedX�fd\d]d^gedd_d`eda�fdbdcddgd dd_d#�fdedfdggd dd_d#�fdhdigedjdd`edk�fdldmgd ddjd#�fdndogedpdd`edk�fdqdrgded�fdsdtgddud�fdvdwgdxdydz�fd{d|gdd
edD�fd}d~gdddA�fd�d�d�gd�ed��fd�d�gd�ed��fd�d�d�gd�d�ed��fd�d�gd�ed��fd�ee
fd�d�gd�eed��fd�e
d�ge
ed��fd�d�d�gd�d�d�d��fd�d�gdyed
d��fd�d�gdyd�d3ed��fd�d�d�gd�d�ifd�d�d�gd�d�ifed�gd�d�ifed�gd�d�ifed�gd�difed�gd�difed�gd�difed�gd�difed�gdUd�ed��fed�gd�diff2fZd
d
d
d
d��Zd�Zd�Zd�ejej�rd�ej�pd�e	j��d�e	j fZ!d�d�d��Z"d�dÄZ#d�dńZ$d�dDŽZ%d�dɄZ&d�d˄Z'd�d̈́Z(d�dτZ)d�dфZ*d�dӄZ+d
S)��OptionParser)z/etc/docutils.confz./docutils.confz~/.docutilsz(info 1 warning 2 error 3 severe 4 none 5rRrerrU�)�infoZwarningrZsevereZnoneTF)	�1ZonZyes�true�0Zoff�noZfalse�r-NrSrTzGeneral Docutils Optionsz'Specify the document title as metadata.z--titlez2Include a "Generated by Docutils" credit and link.z--generatorz-g�
store_true)�actionr�z"Do not include a generator credit.z--no-generator�store_false�	generator)r�r�z2Include the date at the end of the document (UTC).z--datez-d�store_constz%Y-%m-%dZ	datestamp)r��constr�zInclude the time & date (UTC).z--timez-tz%Y-%m-%d %H:%M UTCz'Do not include a datestamp of any kind.z--no-datestampz&Include a "View document source" link.z
--source-linkz-sz3Use <URL> for a source link; implies --source-link.z--source-url�metavarz<URL>z-Do not include a "View document source" link.z--no-source-link�callback)Zsource_linkZ
source_url)r�r�Z
callback_argsz4Link from section headers to TOC entries.  (default)z--toc-entry-backlinksZ
toc_backlinks�entry)r�r�r�r}z0Link from section headers to the top of the TOC.z--toc-top-backlinks�top)r�r�r�z+Disable backlinks to the table of contents.z--no-toc-backlinks)r�r�z6Link from footnotes/citations to references. (default)z--footnote-backlinks)r�r}r�z/Disable backlinks from footnotes and citations.z--no-footnote-backlinksZfootnote_backlinksz0Enable section numbering by Docutils.  (default)z--section-numberingZ
sectnum_xform)r�r�r}r�z&Disable section numbering by Docutils.z--no-section-numberingz/Remove comment elements from the document tree.z--strip-commentsz6Leave comment elements in the document tree. (default)z--leave-commentsZstrip_commentsz�Remove all elements with classes="<class>" from the document tree. Warning: potentially dangerous; use with caution. (Multiple-use option.)z--strip-elements-with-classrVZstrip_elements_with_classesz<class>)r�r�r�r�z�Remove all classes="<class>" attributes from elements in the document tree. Warning: potentially dangerous; use with caution. (Multiple-use option.)z
--strip-classZ
strip_classeszReport system messages at or higher than <level>: "info" or "1", "warning"/"2" (default), "error"/"3", "severe"/"4", "none"/"5"z--reportz-rZreport_levelz<level>)�choicesr}r�r�r�z4Report all system messages.  (Same as "--report=1".)z	--verbosez-vz3Report no system messages.  (Same as "--report=5".)z--quietz-qzdHalt execution at system messages at or above <level>.  Levels as in --report.  Default: 4 (severe).z--haltZ
halt_level)r�r�r}r�r�z6Halt at the slightest problem.  Same as "--halt=info".z--strictzjEnable a non-zero exit status for non-halting system messages at or above <level>.  Default: 5 (disabled).z
--exit-statusZexit_status_levelz3Enable debug-level system messages and diagnostics.z--debugz Disable debug output.  (default)z
--no-debug�debugz-Send the output of system messages to <file>.z
--warnings�warning_streamz<file>)r�r�z1Enable Python tracebacks when Docutils is halted.z--tracebackz%Disable Python tracebacks.  (default)z--no-traceback�	tracebackziSpecify the encoding and optionally the error handler of input text.  Default: <locale-dependent>:strict.z--input-encodingz-iz<name[:handler]>)r�r�zlSpecify the error handler for undecodable characters.  Choices: "strict" (default), "ignore", and "replace".z--input-encoding-error-handler�strict)r}r�z^Specify the text encoding and optionally the error handler for output.  Default: UTF-8:strict.z--output-encodingz-o�utf-8)r�r}r�z�Specify error handler for unencodable output characters; "strict" (default), "ignore", "replace", "xmlcharrefreplace", "backslashreplace".z--output-encoding-error-handlerzJSpecify text encoding and error handler for error output.  Default: %s:%s.z--error-encodingz-ezSSpecify the error handler for unencodable characters in error output.  Default: %s.z--error-encoding-error-handlerz<Specify the language (as BCP 47 language tag).  Default: en.z
--languagez-lZ
language_code�enz<name>)r�r}r�z)Write output file dependencies to <file>.z--record-dependencies)r�r�r}z6Read configuration settings from <file>, if it exists.z--config�string)r��typer�r�z,Show this program's version number and exit.z	--versionz-Vr��versionz Show this help message and exit.z--helpz-h�helpz--id-prefixr}r�z--auto-id-prefix�%z--dump-settingsz--dump-internalsz--dump-transformsz--dump-pseudo-xmlz--expose-internal-attributeZexpose_internals)r�r�r�z--strict-visitor)�_disable_config�_source�_destination�
_config_files)r��generalz(%%prog (Docutils %s%s, Python %s, on %s)z [%s]rrc
Os�i|_g|_tjj|g|�Rtdtjdd�d�|��|jsD|j|_t	|j
�|_
|ft|�|_|�
|j�|�|pvi�|r�|jds�z|��}Wn2ty�}z|�t|��WYd}~n
d}~00|�|j�dS)N�N)�width)Zoption_classZadd_help_option�	formatterr�)rx�config_filesrqr�rrr�ZTitledHelpFormatterr��version_templater<�relative_path_settingsrk�
components�populate_from_components�set_defaults_from_dictrz�get_standard_config_settingsrrr	rv)rur�rzZread_config_filesrrZconfig_settingsrrrrrrOs0��
��$zOptionParser.__init__c
Cs�|D]�}|durq|j}|j�|j�tdt|�d�D]�}|||d�\}}}|rnt�|||�}|�|�n|}|D]8\}	}
}|j|
d|	i|��}|�	d�dkrvd|j
|j<qv|jr6|j
�|j�q6q|D]}|r�|jr�|j
�|j�q�dS)Nrrr�r�rVT)rlr�r>rjrXrqZOptionGroupZadd_option_groupZ
add_option�getrxr��settings_defaultsrzrZsettings_default_overrides)
rur��	componentrlrC�title�descriptionZoption_spec�group�	help_text�option_stringsrrrrrr�os0��
z%OptionParser.populate_from_componentscs|ztjd�tj�}Wnty.|j}Yn0tjj�dtjvrjzddl}Wnt	yhdd��Yn0�fdd�|D�S)NZDOCUTILSCONFIG�HOMErcSs|Srr)�xrrr�<lambda>�rEz8OptionParser.get_standard_config_files.<locals>.<lambda>csg|]}|��r�|��qSrrA)rB�f��expandrrrD�rEz:OptionParser.get_standard_config_files.<locals>.<listcomp>)
rb�environr+�pathsepr4�standard_config_filesr]�
expanduser�pwd�ImportError)rur�r�rr�r�get_standard_config_files�s
z&OptionParser.get_standard_config_filescCs*t�}|��D]}|�|�|�|�q|Sr)ror�rr)rurm�filenamerrrr��sz)OptionParser.get_standard_config_settingscCs�t�}|�||�|j�|j�tj�|�}t�}t	�}|j
D]L}|sHq>t|jpRd�|j
fD]*}||vrlq^|�|�|�|�|�|�q^q>t|j|j|�|jS)Nr)�ConfigParser�readr�r>�_filesrbr]�dirnamer,ror�rkZconfig_section_dependenciesr&�addr�get_sectionrarvr�)ruZconfig_filerr_Zappliedrmr��sectionrrrr�s(
�

�z%OptionParser.get_config_file_settingscCs,|�|�\|_|_t|j|j�|j|_|Sr)�
check_argsr�r�rarvr�r�r�)rurrrrr�check_values�szOptionParser.check_valuescCshd}}|r"|�d�}|dkr"d}|r<|�d�}|dkr<d}|rJ|�d�|r`||kr`|�d�||fS)NrrfzMaximum 2 arguments allowed.z_Do not specify the same file for both source and destination.  It will clobber the source file.)r=r)rur�sourceZdestinationrrrr��s



zOptionParser.check_argscCs|j�|�dSr)rzr�rurzrrrr��sz#OptionParser.set_defaults_from_dictcCst|j�}|j|_|Sr)rorzr�r�r�rrr�get_default_values�s
zOptionParser.get_default_valuescCsD|j|gD]&}|jD]}|j|kr|Sqqtd|��dS)NzNo option with dest == %r.)Z
option_groupsZoption_listr�r4)rur�r�rrrr�get_option_by_dest�s



zOptionParser.get_option_by_dest)rNN),rr�r�r�r+Zthreshold_choicesr9r1ry�sys�stderrrZdefault_error_encodingZ$default_error_encoding_error_handlerr5rrQr;r.r)rOrrr@rlr�r�r&rK�__version__Z__version_details__r��platformr�rrr�r�r�rr�r�r�r�r�rrrrr�ss
��������
��������
�����
��������������
��
��
��������������������������
�������������*����
 r�c@sPeZdZdddd�ZdZdZdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�ZdS)r�)�pep_html writerZ
stylesheet)r�Zstylesheet_path)r��template)Zpep_stylesheetZpep_stylesheet_pathZpep_templatea	
The "[option]" section is deprecated.  Support for old-format configuration
files will be removed in a future Docutils release.  Please revise your
configuration files.  See <http://docutils.sf.net/docs/user/config.html>,
section "Old-Format Configuration Files".
zhUnable to read configuration file "%s": content not encoded as UTF-8.
Skipping "%s" configuration file.
cOs*tj|g|�Ri|��g|_t�|_dSr)rrrr�r
�_stderrrtrrrrrszConfigParser.__init__c	Cs�t|�ttfvr|g}|D]�}zt�|dd�}WntyFYqYn0z,tjdkrdt�	|||�nt�
|||�Wn4ty�|j�
|j||f�|��YqYn0|��|j�|�|�d�r�|�|�|�||�qdS)N�rr�r�options)r��str�unicoder�openrNr��version_inforZreadfpZ	read_file�UnicodeDecodeErrorr��write�not_utf8_error�closer�rV�has_section�handle_old_config�validate_settings)ru�	filenamesr$r��fprrrr�
s(




zConfigParser.readcCs�t�|jt|d�|�d�}|�d�s0|�d�|��D]X\}}||jvrn|j|\}}|�|�sv|�|�nd}|}|�	||�s8|�
|||�q8|�d�dS)Nrr�r�)�warnings�
warn_explicit�old_warning�ConfigDeprecationWarningr�r�Zadd_sectionr�old_settingsZ
has_optionr,Zremove_section)rur�r�rrr�r#rrrr�%s 
�




zConfigParser.handle_old_configc	Cs�|��D]�}|�|�D]�}z|�|�}Wnty>YqYn0|jr�|�||�}z|j|||||d�}Wn>ty�}z&td||t|�||f��WYd}~n
d}~00|�	|||�|j
r|�	||j
d�qqdS)N)r%r&zAError in config file "%s", section "[%s]":
    %s
        %s = %s)Zsectionsr�r�r4r�r�r�rrr,r�)	rur�r$r�r#rrr�rrrrr�7s0
�

���zConfigParser.validate_settingscCs|���dd�S)Nrfrg)r3ri)ruZ	optionstrrrr�optionxformSszConfigParser.optionxformcCs2i}|�|�r.|�|�D]}|�||�||<q|Sr)r�r�r�)rur�Zsection_dictrrrrr�Ys

zConfigParser.get_sectionN)rr�r�r�r�r�rrr�r�r�r�r�rrrrr��s�	r�c@seZdZdS)r�N)rr�r�rrrrr�esr�)NN)NN)NN)NN)NN)NN)NN)NN)NN)NN)NN)NN)NN)N)0Z
__docformat__rbZos.pathr�r�rrqrr�Zconfigparserrrr�rrKZdocutils.utilsZdocutils.nodesZdocutils.utils.error_reportingrr	r
rr�r�rrr'r)r.r5r6r8r;r@rGrJrOrQr[rar\rnror�r�ZSettingsSpec�
FutureWarningr�rrrr�<module>sp

�

�

�
�
�
�
�
�

�
�

�
�
�
#
&~v

Youez - 2016 - github.com/yon3zu
LinuXploit