403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/breezy/__pycache__/utextwrap.cpython-313.pyc
�

p��g�/��j�SSKrSSKJr SSKJr /SQr"SS\R5rS
Sjr	S
S	jr
g)�N)�east_asian_width�)�osutils)�UTextWrapper�fill�wrapc�R�\rSrSrSrSSjrSrSrSrSr	S	r
S
rSrSr
S
rg)r�"aVExtend TextWrapper for Unicode.

This textwrapper handles east asian double width and split word
even if !break_long_words when word contains double width
characters.

:param ambiguous_width: (keyword argument) width for character when
                        unicodedata.east_asian_width(c) == 'A'
                        (default: 1)

Limitations:
* expand_tabs doesn't fixed. It uses len() for calculating width
  of string on left of TAB.
* Handles one codeunit as a single character having 1 or 2 width.
  This is not correct when there are surrogate pairs, combined
  characters or zero-width characters.
* Treats all asian character are line breakable. But it is not
  true because line breaking is prohibited around some characters.
  (For example, breaking before punctation mark is prohibited.)
  See UAX # 14 "UNICODE LINE BREAKING ALGORITHM"
Nc�H�Uc/[R"5=(d [RS-
nURSS5nUS:XaSUlOUS:XaSUlO[S5eUR
S5Ul[RR"X40UD6 g)Nr�ambiguous_width�FW��FWAz ambiguous_width should be 1 or 2�	max_lines)r�terminal_width�default_terminal_width�pop�_east_asian_doublewidth�
ValueError�getr�textwrap�TextWrapper�__init__)�self�width�kwargs�
ambi_widths    �2/usr/lib/python3/dist-packages/breezy/utextwrap.pyr�UTextWrapper.__init__9s����=��+�+�-�O��1O�1O�ST�T�E��Z�Z� 1�1�5�
���?�+/�D�(�
�1�_�+0�D�(��?�@�@����K�0������%�%�d�<�V�<�c�V�[U5UR;=(a S=(d S$)zOReturn width of character `uc`.

:param:     uc      Single unicode character.
rr)�_eawidthr)r�ucs  r�_unicode_char_width� UTextWrapper._unicode_char_widthHs#������ <� <�<�B��H�q�Hr c�F^�URm[U4SjU55$)z�Returns width for s.

When s is unicode, take care of east asian width.
When s is bytes, treat all byte is single width character.
c3�4># �UH
nT"U5v� M g7f�N�)�.0�c�	charwidths  �r�	<genexpr>�&UTextWrapper._width.<locals>.<genexpr>Ys����+��A�9�Q�<�<��s�)r$�sum)r�sr,s  @r�_width�UTextWrapper._widthRs!����,�,�	��+��+�+�+r c��SnURn[U5HupVX4"U5-
nX2:�dMUSUXS4s $ US4$)z_Returns head and rest of s. (head+rest == s).

Head is large as long as _width(head) <= width.
rN�)r$�	enumerate)rr0r�wr,�posr+s       r�_cut�UTextWrapper._cut[sW��

���,�,�	���l�F�C�
��1���A��y���#�w��$��'�'�#��"�u�r c���Sn[U5S-
nURRnX#:a4XS-S:XaU"X5(a
SXS-'US-
nOUS-
nX#:aM3gg)a�_fix_sentence_endings(chunks : [string]).

Correct for sentence endings buried in 'chunks'.  Eg. when the
original text contains "... foo.\nBar ...", munge_whitespace()
and split() will convert that to [..., "foo.", " ", "Bar", ...]
which has one too few spaces; this method simply changes the one
space to two.

Note: This function is copied from textwrap.TextWrap and modified
to use unicode always.
rr� z  rN)�len�sentence_end_re�search)r�chunks�i�L�	patsearchs     r�_fix_sentence_endings�"UTextWrapper._fix_sentence_endingshsj��
����K�!�O���(�(�/�/�	��e��!�e�}��#�	�&�)�(<�(<� $��1�u�
��Q����Q����er c�R�US:a-US=(a URUSS5=(d SnOXC-
nUR(a8URUSU5upgURU5 U(aXqS'gUS	gU(d URUR	55 gg)Nr���rr)r1�break_long_wordsr8�appendr)rr?�cur_line�cur_lenr�
space_left�head�rests        r�_handle_long_word�UTextWrapper._handle_long_word~s����1�9� ��*�C����V�B�Z��]�)C�I��J���J�� � ����6�"�:�z�:�J�D��O�O�D�!��!�r�
��2�J�
��O�O�F�J�J�L�)�r c���/nURS::a$[SRUR55eURb}URS:�a
URnOUR
nUR
U5UR
URR55-UR:�a[S5eUR5 U(Ga/nSnU(a
URnOUR
nUR[U5-
nUR(a!USR5S:Xa
U(aUS	U(aJUR
US5nXW-U::a$URUR55 XW-
nOO	U(aMJU(aCUR
US5U:�a+URXXV5 [![#[U55nUR(a"U(aUSR5(dUS	U(Ga�URb`[U5S-UR:dDU(a8UR(aQ[U5S:XaBUSR5(d*XV::a%URUSR%U5-5 GO;U(a�USR5(acXPR
UR5-U::aBURUR5 URUSR%U5-5 U$XPR
US5-nUS	U(aM�U(abUSR'5nUR
U5UR
UR5-UR::aX�R-US'U$URX0RR5-5 U$U(aGMU$)Nrz invalid width {!r} (must be > 0)rz#placeholder too large for max widthrFr4)rr�formatr�subsequent_indent�initial_indentr1�placeholder�lstrip�reverser<�drop_whitespace�striprHrrNr/�map�join�rstrip)	rr?�lines�indentrIrJr�l�	prev_lines	         r�_wrap_chunks�UTextWrapper._wrap_chunks�sM�����:�:��?��?�F�F�t�z�z�R�S�S��>�>�%��~�~��!��/�/���,�,�����F�#�d�k�k�$�2B�2B�2I�2I�2K�&L�L��*�*��!�!F�G�G�	������H��G���/�/���,�,���J�J��V��,�E��#�#��r�
�(8�(8�(:�b�(@�U��2�J���K�K��r�
�+���;�%�'��O�O�F�J�J�L�1��L�G���&��$�+�+�f�R�j�1�E�9��&�&�v��H��c�#�x�0�1���#�#���"��9K�9K�9M�9M��R�L���N�N�*��5�z�A�~����6�!'� $� 4� 4�$'��K�1�$4�(.�q�	���(9�(9�$�,�
�L�L��"�'�'�(�*;�!;�<�"�$�R�L�.�.�0�0� '�+�+�d�6F�6F�*G� G�5� P�$�O�O�D�,<�,<�=�!�L�L��"�'�'�(�2C�)C�D�!���� �;�;�x��|�#<�<��$�R�L�#�(�!�(-�b�	�(8�(8�(:�I� $���I� 6����T�EU�EU�9V� V�#'�:�:�!.�-6�8H�8H�,H��b�	� %������V�.>�.>�.E�.E�.G�%G�H����o�f�n�r c��[RRU[R"U55n/nUH�nSn[U5HJupgUR
U5S:XdMXV:aURXEU5 URU5 US-nML U[U5:dMoURXES5 M� U$)Nrrr)	rr�_splitr�safe_unicoder5r$rHr<)r�textr?�cjk_split_chunks�chunk�prev_posr7�chars        rrc�UTextWrapper._splits����%�%�,�,�T�7�3G�3G��3M�N�����E��H�&�u�-�	���+�+�D�1�Q�6��~�(�/�/��s�0C�D�$�+�+�D�1�"�Q�w�H�.��#�e�*�$� �'�'��i�(8�9�� �r c�j�[RRU[R"U55$r()rrrrrd)rres  rr�UTextWrapper.wraps&���#�#�(�(��w�/C�/C�D�/I�J�Jr )rrr()�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr$r1r8rCrNr`rcr�__static_attributes__r)r rrr"s8���,
=�I�,���,*�<j�X
 �Kr rc�:�[SSU0UD6RU5$)a�Wrap a single paragraph of text, returning a list of wrapped lines.

Reformat the single paragraph in 'text' so it fits in lines of no
more than 'width' columns, and return a list of wrapped lines.  By
default, tabs in 'text' are expanded with string.expandtabs(), and
all other whitespace characters (including newline) are converted to
space.  See TextWrapper class for available keyword args to customize
wrapping behaviour.
rr))rr�rerrs   rrrs"���.�e�.�v�.�3�3�D�9�9r c�:�[SSU0UD6RU5$)a~Fill a single paragraph of text, returning a new string.

Reformat the single paragraph in 'text' to fit in lines of no more
than 'width' columns, and return a new string containing the entire
wrapped paragraph.  As with wrap(), tabs are expanded and other
whitespace characters converted to space.  See TextWrapper class for
available keyword args to customize wrapping behaviour.
rr))rrrts   rrr,s"���.�e�.�v�.�3�3�D�9�9r r()r�unicodedatarr"r4r�__all__rrrrr)r r�<module>rxs6��4�4��
*��wK�8�'�'�wK�z
:�	:r 

Youez - 2016 - github.com/yon3zu
LinuXploit