HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //proc/93580/root/lib/python3/dist-packages/click/__pycache__/_textwrap.cpython-310.pyc
o

�+caI�@s2ddlZddlZddlmZGdd�dej�ZdS)�N)�contextmanagerc
@sdeZdZdejedejedededdf
dd�Zed	edej	dfd
d��Z
dedefd
d�ZdS)�TextWrapper�reversed_chunks�cur_line�cur_len�width�returnNc	Csdt||d�}|jr%|d}|d|�}||d�}|�|�||d<dS|s0|�|���dSdS)N����)�maxZbreak_long_words�append�pop)	�selfrrrrZ
space_leftZlastZcut�res�r�1/usr/lib/python3/dist-packages/click/_textwrap.py�_handle_long_words
�zTextWrapper._handle_long_word�indentccsR�|j}|j}|j|7_|j|7_zdVW||_||_dS||_||_w)N)�initial_indent�subsequent_indent)rrZold_initial_indentZold_subsequent_indentrrr�extra_indents�
�zTextWrapper.extra_indent�textcCsJg}t|���D]\}}|j}|dkr|j}|�|�|���qd�|�S)Nr�
)�	enumerate�
splitlinesrrr�join)rrZrv�idx�linerrrr�indent_only&s
zTextWrapper.indent_only)�__name__�
__module__�__qualname__�tZList�str�intrr�Iteratorrrrrrrrs����
�r)�textwrap�typingr"�
contextlibrrrrrr�<module>s