AlkantarClanX12
Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/ |
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/textwrap.cpython-312.opt-2.pyc |
� �Q�fM � �� � d dl Z g d�ZdZ G d� d� Zdd�Zdd�Zd� Z e j d e j � Z e j d e j � Z d� Zdd�Ze d k( r e ed� � yy)� N)�TextWrapper�wrap�fill�dedent�indent�shortenz c � � e Zd Z ej eee� ed� � ZdZ dZ d ej e� z Z de dd z Z ej de e e ed �z ej � Z[ [ [ ej d e z � Z[ ej d� Z dddd �d�Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zy)r � z[\w!"\'&.,?]z[^\d\W]z[%s]z[^� Na� ( # any whitespace %(ws)s+ | # em-dash between words (?<=%(wp)s) -{2,} (?=\w) | # word, possibly hyphenated %(nws)s+? (?: # hyphenated word -(?: (?<=%(lt)s{2}-) | (?<=%(lt)s-%(lt)s-)) (?= %(lt)s -? %(lt)s) | # end of word (?=%(ws)s|\Z) | # em-dash (?<=%(wp)s) (?=-{2,}\w) ) ))�wp�lt�ws�nwsz(%s+)z[a-z][\.\!\?][\"\']?\Zz [...])� max_lines�placeholderc � � || _ || _ || _ || _ || _ || _ || _ || _ | | _ | | _ || _ || _ y �N)�width�initial_indent�subsequent_indent�expand_tabs�replace_whitespace�fix_sentence_endings�break_long_words�drop_whitespace�break_on_hyphens�tabsizer r ) �selfr r r r r r r r r r r r s �//opt/alt/python312/lib64/python3.12/textwrap.py�__init__zTextWrapper.__init__p sa � � �� �,���!2���&���"4���$8��!� 0���.��� 0������"���&��� c � � | j r|j | j � }| j r|j | j � }|S r )r � expandtabsr r � translate�unicode_whitespace_trans�r �texts r �_munge_whitespacezTextWrapper._munge_whitespace� sF � � � ����?�?�4�<�<�0�D��"�"��>�>�$�"?�"?�@�D��r! c � � | j du r| j j |� }n| j j |� }|D �cg c] }|s�|�� }}|S c c}w �NT)r � wordsep_re�split�wordsep_simple_re)r r'