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/pygments/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

SҼa"T�@s@dZddlZddlZddlZddlZddlmZddlmZm	Z	ddl
mZmZm
Z
mZmZmZmZddlmZmZmZmZmZmZddlmZddlmZmZdd	lmZm Z m!Z!m"Z"m#Z#dd
l$m%Z%ddl&m'Z'ddl(m)Z)m*Z*dd
l+m,Z,m-Z-dd�Z.dd�Z/dd�Z0dd�Z1dd�Z2Gdd�dej3�Z3ej4fdd�Z5dS)z�
    pygments.cmdline
    ~~~~~~~~~~~~~~~~

    Command line interface.

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�dedent)�__version__�	highlight)�
ClassNotFound�OptionError�docstring_headline�guess_decode�guess_decode_from_terminal�terminal_encoding�UnclosingTextIOWrapper)�get_all_lexers�get_lexer_by_name�guess_lexer�load_lexer_from_file�get_lexer_for_filename�find_lexer_class_for_filename)�	TextLexer)�LatexEmbeddedLexer�LatexFormatter)�get_all_formatters�get_formatter_by_name�load_formatter_from_file�get_formatter_for_filename�find_formatter_class)�TerminalFormatter)�Terminal256Formatter)�get_all_filters�find_filter_class)�get_all_styles�get_style_by_namec
Cs�i}|s|S|D]r}|��sq|�d�}|D]T}|��}z$|�dd�\}}|��}|��}Wntyvd||<Yq,0|||<q,q|S)N�,�=�T)�strip�split�
ValueError)Zo_strsZoptsZo_strZo_argsZo_argZo_keyZo_val�r&�4/usr/lib/python3.9/site-packages/pygments/cmdline.py�_parse_options!s"
r(cCsVg}|s|S|D]@}d|vrB|�dd�\}}|�|t|g�f�q|�|if�q|S)N�:r")r$�appendr()Zf_strs�filtersZf_str�fname�foptsr&r&r'�_parse_filters6sr.c	Cs�z�|dkr0t|�}td|j�tt|j��nX|dkr^t|�}td|j�tt|j��n*|dkr�t|�}td|�tt|j��WdSttfy�td|t	j
d	�Yd
S0dS)N�lexerzHelp on the %s lexer:�	formatterzHelp on the %s formatter:�filterzHelp on the %s filter:rz
%s not found!��filer")r
�print�namer�__doc__rr�AttributeErrorr%�sys�stderr)�whatr5�clsr&r&r'�_print_helpCs"r<cCs�|dkr�t�td�td�g}t�D]@\}}}}d�|�d||rXdd�|�dpZdf}|�|�q(|��|D]}td	|�qv�nB|d
k�r t�td�td�g}t�D]F}t|�}	d�|j�d|	|jr�dd�|j�dp�df}|�|�q�|��|D]}td	|��q
n�|d
k�rxt�td�td�t	�D].}
t
|
�}td|
d�tdt|���qFnV|dk�r�t�td�td�t�D].}
t|
�}td|
d�tdt|���q�dS)Nr/zLexers:z~~~~~~~z, r)z(filenames �)�z* %s
    %s %sr0zFormatters:z~~~~~~~~~~~r1zFilters:z~~~~~~~~z* z    %s�stylezStyles:)
r4r�joinr*�sortrr�aliases�	filenamesrrrr)r:�info�fullname�namesZexts�_�tup�ir;�docr5r&r&r'�_print_listWsZ�

��



rKc#sD
�jr|��dS�jr(tdt�dS�fdd�}�jdur�|d�sV|�tj�dStddg�hd	��d
d��jD�}t	�fdd
�|D��r�|�tj�dS|s��}|D]}t
|�q�dS�j�r|d�s�|�tj�dS�j\}}|dv�r|�tj�dSt||�St
�j�pg�}�j�p&gD]@}z|�dd�\}}	Wnt�y\d||<Yn
0|	||<�q(|�d|�d��}
|�d|�d��}�j�r�t�j�}|du�r�t}t|jd�dS�j�rtjj��}
zt|
|
d�}Wnt�y�t}Yn0t|jd�dS�j}�j}|du�rΈj}|�sB|�tj�dS�j �sR�j!�rb|�tj�dSz||d<t"|fi|��}Wn6t�y�}zt|tjd�WYd}~dSd}~00t|�#|�p�d��dS�jdu�r�|�tj�dSt$�j%�p�g�}t&�j'�}d}�j }|�r|�r�d|v�r�zdd}d}d|v�rV|�(dd�\}}d|v�rVd}|�rv|�rvt)||fi|��}nt)|fi|��}Wn8t�y�}ztd|tjd�WYd}~dSd}~00nRzt*|fi|��}Wn<t+tf�y}ztd|tjd�WYd}~dSd}~00d}�j!�r��j,�r<tdtjd�dS�j!}z8t-|d��}|��}Wd�n1�sn0YWn8t.�y�}ztd|tjd�WYd}~dSd}~00|
�s�t/|�\}}
|�s$zt0||fi|��}Wn�t�yh}zl�j1�r6zt|fi|��}Wn"t�y2tfi|��}Yn0ntd|tjd�WYd}~dSWYd}~n@d}~0t+�y�}ztd|tjd�WYd}~dSd}~00n��j,�stjj��}|
�s�t2|tj�\}}
|�s$zt|fi|��}Wn"t�ytfi|��}Yn0n|�s$tdtjd�dS|D]\\}}z|j3|fi|��Wn:t�y�}z td|tjd�WYd}~dSd}~00�q(�j4}�j}|�r�|�rHd|v�rHzdd}d}d|v�r�|�(dd�\}}d|v�r�d}|�r�|�r�t5||fi|��}nt5|fi|��}Wn8t�yD}ztd|tjd�WYd}~dSd}~00nRzt"|fi|��}Wn<t+tf�y�}ztd|tjd�WYd}~dSd}~00|�rB|�s�zt6|fi|��}Wn<t+tf�y�}ztd|tjd�WYd}~dSd}~00zt-|d �}Wn8t.�y>}ztd!|tjd�WYd}~dSd}~00n@|�szd"t7j8�d#d�v�rlt9fi|��}nt:fi|��}tj;j}|�s�|�r�|
|_<nt=tj;�|_<|�	stj>d$v�	r|j?d%v�	rt@||j<d&�}d|_<zddlA}WntB�y�Yn0|jCjD|ddd'dd(�}|�d)d�}tE|�dk�	rNtF|tG��	rN|d} |d}!tH| |!|�}�j,�	s�z tI||||�W|�	r�|�J�n|�	r�|�J�0dSz�zhtjj�K�}"|"�	s��	q�|
�	s�t2|"tj�d}"tI|"|||�tL|d*��	r�|�M��	q�WW|�	r�|�J�dStN�
yYW|�
r|�J�dS0W|�
r@|�J�n|�
r>|�J�0dS)+NruWPygments version %s, (c) 2006-2021 by Georg Brandl, Matthäus Chajdas and contributors.cs t�fdd�t����D��S)Nc3s|]\}}|�kr|VqdS�Nr&)�.0�k�v��optr&r'�	<genexpr>��z5main_inner.<locals>.is_only_option.<locals>.<genexpr>)�any�vars�itemsrP)�argnsrPr'�is_only_option�sz"main_inner.<locals>.is_only_option�L�r>�-V>r?r/r0r1cSsg|]}|�d��qS)�s)�rstrip�rM�argr&r&r'�
<listcomp>�rSzmain_inner.<locals>.<listcomp>c3s|]}|�vVqdSrLr&r^)�
allowed_typesr&r'rR�rSzmain_inner.<locals>.<genexpr>�H)r/r0r1r!r"T�
inencoding�encoding�outencoding)rcr?r2z.pyr)zError:z5Error: -s option not usable when input file specified�rbzError: cannot read infile:z7Error: when using -s a lexer has to be selected with -l�wbzError: cannot open outfile:Z256ZTERM)�win32�cygwin)ZTerminalZTerminal256)rdF)Zconvertr#Z	autoreset�wrap�escapeinside�flush)O�help�
print_help�Vr4rrYr8r9�mainrTrKrbr<r(�O�Pr$r%�get�NrrrB�C�stdin�buffer�readrr�S�a�f�l�	INPUTFILErZget_style_defsr.�F�bool�x�rsplitrr
rr\�open�	Exceptionrr�gr	Z
add_filter�orr�os�environrr�stdoutrdr
�platformr5rZcolorama.initialise�ImportErrorZ
initialiseZwrap_stream�len�
isinstancerrr�close�readline�hasattrrl�KeyboardInterrupt)#�parserrWrXZlargsr_r:r5Zparsed_optsZp_opt�valuercrer/�inpZS_optZa_optZf_optZfmter�errZF_optsZallow_custom_lexer_formatterZ	lexername�filename�codeZinfnZinfpr,r-ZoutfnZoutfileZcoloramark�left�right�liner&)rarWr'�
main_inner�s��












��,"�


��
�
�
��
�r�c@seZdZddd�ZdS)�
HelpFormatterrZ�NcCsF|dur.zt��jd}Wnty,Yn0tj�|||||�dS)NrZ)�shutil�get_terminal_size�columnsr��argparser��__init__)�self�prog�indent_increment�max_help_position�widthr&r&r'r��s�zHelpFormatter.__init__)rZr�N)�__name__�
__module__�__qualname__r�r&r&r&r'r��sr�cCs�d}tj|dtd�}|�d�}|��}|jdddd�|jd	d
dd�|jd
dddd�|jdddd�|jddddd�|jddddd�|jdddd�|jddd d!�|�d"�}|jd#d
d$d�|jd%d
d&d�|jd'd
d(d�|�d)�}|��}|jd*d+d,d�|jd-d.d/d0d1�|jd2d3d4d�|jd5d
d6d�|jd7d8d9d:d;d<�|jd=d
d>d�|jd?d@d
dAd�|jdBdCdDd�|�|dEdF��}zt||�WSt�y�|j	�rt
tjdG�t
dHtjdG�t
dItjdG�t
dJtjdG�t
dKtjdG�t
dHtjdG�t
tjdG��dLdFl
}	|	jt���}
|
dM��}t|
�dNk�rl|dO|
dP�dQ�dL��dEdF�7}t
tjdG�t
dRtjdG�t
|tjdG�t
dStjdG�YdES0dFS)Tz(
    Main command line entry point.
    z?Highlight an input file and write the result to an output file.F)�description�add_help�formatter_classzMain operationz-lZLEXERz~Specify the lexer to use.  (Query names with -L.)  If not given and -g is not present, the lexer is guessed from the filename.)�metavarrmz-g�
store_truez`Guess the lexer from the file contents, or pass through as plain text if nothing can be guessed.)�actionrmz-FzFILTER[:options]r*znAdd a filter to the token stream.  (Query names with -L.) Filter options are given after a colon if necessary.)r�r�rmz-fZ	FORMATTERz�Specify the formatter to use.  (Query names with -L.) If not given, the formatter is guessed from the output filename, and defaults to the terminal formatter if the output is to the terminal or an unknown file extension.z-OzOPTION=value[,OPTION=value,...]zyGive options to the lexer and formatter as a comma-separated list of key-value pairs. Example: `-O bg=light,python=cool`.z-PzOPTION=valuez�Give a single option to the lexer and formatter - with this you can pass options whose value contains commas and equal signs. Example: `-P "heading=Pygments, the Python highlighter"`.z-oZ
OUTPUTFILEz8Where to write the output.  Defaults to standard output.r}�?z5Where to read the input.  Defaults to standard input.)�nargsrmzOperation flagsz-vzbPrint a detailed traceback on unhandled exceptions, which is useful for debugging and bug reports.z-sa!Process lines one at a time until EOF, rather than waiting to process the entire file.  This only works for stdin, only for lexers with no line-spanning constructs, and is intended for streaming input such as you get from `tail -f`. Example usage: `tail -f sql.log | pygmentize -s -l sql`.z-xa�Allow custom lexers and formatters to be loaded from a .py file relative to the current working directory. For example, `-l ./customlexer.py -x`. By default, this option expects a file with a class named CustomLexer or CustomFormatter; you can also specify your own class name with a colon (`-l ./lexer.py:MyLexer`). Users should be very careful not to use this option with untrusted files, because it will import and run them.z*Special modes - do not do any highlightingz-SzSTYLE -f formatterzqPrint style definitions for STYLE for a formatter given with -f. The argument given by -a is formatter dependent.z-L�*ZWHATz�List lexers, formatters, styles or filters -- give additional arguments for the thing(s) you want to list (e.g. "styles"), or omit them to list everything.)r�r�rmz-NZFILENAMEz�Guess and print out a lexer name based solely on the given filename. Does not take input or highlight anything. If no specific lexer can be determined, "text" is printed.z-CzXLike -N, but print out a lexer name based solely on a given content from standard input.z-H�storerZ)�NAMEZTYPEzrPrint detailed help for the object <name> of type <type>, where <type> is one of "lexer", "formatter" or "filter".)r�r�r�rmr[zPrint the package version.z-hz--helpzPrint this help.z-aZARGzKFormatter-specific additional argument for the -S (print style sheet) mode.r"Nr2zA*****************************************************************z3An unhandled exception occurred while highlighting.z9Please report the whole traceback to the issue tracker atz.<https://github.com/pygments/pygments/issues>.r����z	
   (f%s)����
z*** Error while highlighting:z>*** If this is a bug you want to report, please rerun with -v.)r��ArgumentParserr��add_argument_group�add_mutually_exclusive_group�add_argument�
parse_argsr�r�rOr4r8r9�	traceback�format_exception�exc_infor#r�r$)�argsZdescr�Z	operationZlexersel�flagsZspecial_modes_groupZ
special_modesrWr�rD�msgr&r&r'rp�s��
��������
���
������������&�rp)6r6r�r8r�r��textwraprZpygmentsrrZ
pygments.utilrrrrr	r
rZpygments.lexersrr
rrrrZpygments.lexers.specialrZpygments.formatters.latexrrZpygments.formattersrrrrrZpygments.formatters.terminalrZpygments.formatters.terminal256rZpygments.filtersrrZpygments.stylesrrr(r.r<rKr�r��argvrpr&r&r&r'�<module>s0
$ 
3B

Youez - 2016 - github.com/yon3zu
LinuXploit