https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib/python2.7/site-packages/click/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python2.7/site-packages/click/formatting.pyc
�
./�_c@s�ddlmZddlmZddlmZddlmZdZ	d�Z
d�Zdd	d	ed
�Z
defd��YZd
�ZdS(i����(tcontextmanageri(tterm_len(t	split_opt(tget_terminal_sizecCsyi}xP|D]H}x?t|�D]1\}}t|j|d�t|��||<q Wq
Wtd�t|j��D��S(Nicss|]\}}|VqdS(N((t.0txty((s1/tmp/pip-install-sTXtzD/click/click/formatting.pys	<genexpr>s(t	enumeratetmaxtgetRttupletsortedtitems(trowstwidthstrowtidxtcol((s1/tmp/pip-install-sTXtzD/click/click/formatting.pyt
measure_tables

-ccs8x1|D])}t|�}|d|t|�VqWdS(Nt(R(R
tlen(R
t	col_countR((s1/tmp/pip-install-sTXtzD/click/click/formatting.pyt	iter_rowss
iNRcshddlm}|j�}||d|d|dt�}|sM|j|�Sg�g�d����fd�}xn|j�D]`}|s�|�d�q��dkr�t|�}	|j�}|	t|��n�j	|�q�W|�g}
xf�D]^\�}}|j
d���:|r;|
j	|j|��n|
j	|j|��WdQXq�Wd	j|
�S(
s�A helper function that intelligently wraps text.  By default, it
    assumes that it operates on a single paragraph of text but if the
    `preserve_paragraphs` parameter is provided it will intelligently
    handle paragraphs (defined by two empty lines).

    If paragraphs are handled, a paragraph can be prefixed with an empty
    line containing the ``\b`` character (``\x08``) to indicate that
    no rewrapping should happen in that block.

    :param text: the text that should be rewrapped.
    :param width: the maximum width for the text.
    :param initial_indent: the initial indent that should be placed on the
                           first line as a string.
    :param subsequent_indent: the indent string that should be placed on
                              each consecutive line.
    :param preserve_paragraphs: if this flag is set then the wrapping will
                                intelligently handle paragraphs.
    i(tTextWrappertinitial_indenttsubsequent_indenttreplace_whitespacecsy�s
dS�dj�dkrL�j�p/dtdj�d�f�n%�j�p[dtdj��f��2dS(Niss
it (tstriptappendtTruetjointFalse((tbuftindenttp(s1/tmp/pip-install-sTXtzD/click/click/formatting.pyt
_flush_par>s,%RNs

(
t	_textwrapRt
expandtabsR tfilltNonet
splitlinesRtlstripRtextra_indenttindent_onlyR(ttexttwidthRRtpreserve_paragraphsRtwrapperR$tlinetorig_lentrvtraw((R!R"R#s1/tmp/pip-install-sTXtzD/click/click/formatting.pyt	wrap_texts<	
		 t
HelpFormattercBs�eZdZdddd�Zd�Zd�Zd�Zddd�Zd	�Z	d
�Z
d�Zddd
�Ze
d��Ze
d��Zd�ZRS(s�This class helps with formatting text-based help pages.  It's
    usually just needed for very special internal cases, but it's also
    exposed so that developers can write their own fancy outputs.

    At present, it always writes into memory.

    :param indent_increment: the additional increment for each level.
    :param width: the width for the text.  This defaults to the terminal
                  width clamped to a maximum of 78.
    icCs�||_|dkrd}n|dkret}|dkrettt�d|�dd�}qen||_d|_g|_dS(NiPiii2(	tindent_incrementR(tFORCED_WIDTHRtminRR.tcurrent_indenttbuffer(tselfR7R.t	max_width((s1/tmp/pip-install-sTXtzD/click/click/formatting.pyt__init__js		)		cCs|jj|�dS(s1Writes a unicode string into the internal buffer.N(R;R(R<tstring((s1/tmp/pip-install-sTXtzD/click/click/formatting.pytwritevscCs|j|j7_dS(sIncreases the indentation.N(R:R7(R<((s1/tmp/pip-install-sTXtzD/click/click/formatting.pyR"zscCs|j|j8_dS(sDecreases the indentation.N(R:R7(R<((s1/tmp/pip-install-sTXtzD/click/click/formatting.pytdedent~sRsUsage: cCs�dj||d|j�}|j|j}|t|�dkrvdt|�}|jt||d|d|��n\|j|�|jd�dt|jt|��d}|jt||d|d|��|jd�d	S(
s�Writes a usage line into the buffer.

        :param prog: the program name.
        :param args: whitespace separated list of arguments.
        :param prefix: the prefix for the first line.
        s
{:>{w}}{} twiRRRs
iN(tformatR:R.RR@R5R(R<tprogtargstprefixtusage_prefixt
text_widthR"((s1/tmp/pip-install-sTXtzD/click/click/formatting.pytwrite_usage�s"


 cCs&|jdjd|d|j��dS(s!Writes a heading into the buffer.s{:>{w}}{}:
RRBN(R@RCR:(R<theading((s1/tmp/pip-install-sTXtzD/click/click/formatting.pyt
write_heading�scCs|jr|jd�ndS(s#Writes a paragraph into the buffer.s
N(R;R@(R<((s1/tmp/pip-install-sTXtzD/click/click/formatting.pytwrite_paragraph�s	c
Cs_t|j|jd�}d|j}|jt||d|d|dt��|jd�dS(saWrites re-indented text into the buffer.  This rewraps and
        preserves paragraphs.
        iRRRR/s
N(RR.R:R@R5R(R<R-RHR"((s1/tmp/pip-install-sTXtzD/click/click/formatting.pyt
write_text�s

ic	Cs�t|�}t|�}t|�dkr9td��nt|d|�|}xt|t|��D]h\}}|jdjd|d|j��|s�|jd�qfnt	|�||kr�|jd|t	|��n%|jd�|jd||j�t
|j|dd	�}t||d
t
�}	|	j�}
|
r�|jdj|
d��x8|
dD],}|jd
jd|d||j��qlWt|
�dkr�|jd�q�qf|jd�qfWdS(snWrites a definition list into the buffer.  This is how options
        and commands are usually formatted.

        :param rows: a list of two item tuples for the terms and values.
        :param col_max: the maximum width of the first column.
        :param col_spacing: the number of spaces between the first and
                            second column.
        is(Expected two columns for definition listis	{:>{w}}{}RRBs
Ri
R/s{}
is
{:>{w}}{}
N(tlistRRt	TypeErrorR9RR@RCR:RRR.R5RR)(R<R
tcol_maxtcol_spacingRt	first_coltfirsttsecondRHtwrapped_texttlinesR1((s1/tmp/pip-install-sTXtzD/click/click/formatting.pytwrite_dl�s4	""

ccs<|j�|j|�|j�z	dVWd|j�XdS(s�Helpful context manager that writes a paragraph, a heading,
        and the indents.

        :param name: the section name that is written as heading.
        N(RLRKR"RA(R<tname((s1/tmp/pip-install-sTXtzD/click/click/formatting.pytsection�s


	ccs%|j�z	dVWd|j�XdS(s1A context manager that increases the indentation.N(R"RA(R<((s1/tmp/pip-install-sTXtzD/click/click/formatting.pytindentation�s
	cCsdj|j�S(sReturns the buffer contents.R(RR;(R<((s1/tmp/pip-install-sTXtzD/click/click/formatting.pytgetvaluesN(t__name__t
__module__t__doc__R(R>R@R"RARIRKRLRMRWRRYRZR[(((s1/tmp/pip-install-sTXtzD/click/click/formatting.pyR6^s
			"			/	cCs�g}t}xL|D]D}t|�d}|dkr>t}n|jt|�|f�qW|jdd��djd�|D��}||fS(sGiven a list of option strings this joins them in the most appropriate
    way and returns them in the form ``(formatted_string,
    any_prefix_is_slash)`` where the second item in the tuple is a flag that
    indicates if any of the option prefixes was a slash.
    it/tkeycSs|dS(Ni((R((s1/tmp/pip-install-sTXtzD/click/click/formatting.pyt<lambda>ss, css|]}|dVqdS(iN((RR((s1/tmp/pip-install-sTXtzD/click/click/formatting.pys	<genexpr>s(R RRRRtsortR(toptionsR3tany_prefix_is_slashtoptRF((s1/tmp/pip-install-sTXtzD/click/click/formatting.pytjoin_options
s
	N(t
contextlibRt_compatRtparserRttermuiRR(R8RRR R5tobjectR6Rf(((s1/tmp/pip-install-sTXtzD/click/click/formatting.pyt<module>s		D�

https://t.me/AnonymousX5 - 2025