grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026+ ec­ž½9ùãóŠ€Rt^RIt.R OtRt!RR4tR RltR RltRtRtRR lt ] R 8Xd] !]!R 44R#R#)zText wrapping and filling. NÚ TextWrapperz c ó¸a€]tRt^toRt]P ]!]] 4]!R44t Rt Rt R] P!] 4,tR]R,,t] P"!RR ] R ] R ]R ]/,] P$4tA A A] P"!R ],4tA] P"!R4tRRRRR/RlltRtRtRtRtRtRtRtRtRtVt R#)rab Object for wrapping/filling text. The public interface consists of the wrap() and fill() methods; the other methods are just there for subclasses to override in order to tweak the default behaviour. If you want to completely replace the main wrapping algorithm, you'll probably have to override _wrap_chunks(). Several instance attributes control various aspects of wrapping: width (default: 70) the maximum width of wrapped lines (unless break_long_words is false) initial_indent (default: "") string that will be prepended to the first line of wrapped output. Counts towards the line's width. subsequent_indent (default: "") string that will be prepended to all lines save the first of wrapped output; also counts towards each line's width. expand_tabs (default: true) Expand tabs in input text to spaces before further processing. Each tab will become 0 .. 'tabsize' spaces, depending on its position in its line. If false, each tab is treated as a single character. tabsize (default: 8) Expand tabs in input text to 0 .. 'tabsize' spaces, unless 'expand_tabs' is false. replace_whitespace (default: true) Replace all whitespace characters in the input text by spaces after tab expansion. Note that if expand_tabs is false and replace_whitespace is true, every tab will be converted to a single space! fix_sentence_endings (default: false) Ensure that sentence-ending punctuation is always followed by two spaces. Off by default because the algorithm is (unavoidably) imperfect. break_long_words (default: true) Break words longer than 'width'. If false, those words will not be broken, and some lines might be longer than 'width'. break_on_hyphens (default: true) Allow breaking hyphenated words. If true, wrapping will occur preferably on whitespaces and right after hyphens part of compound words. drop_whitespace (default: true) Drop leading and trailing whitespace from lines. max_lines (default: None) Truncate wrapped lines. placeholder (default: ' [...]') Append to the last line of truncated text. Ú z [\w!"\'&.,?]z[^\d\W]z[%s]z[^:éNNaº ( # 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][\.\!\?][\"\']?\zÚ max_linesNÚ placeholderz [...]c ó–€WnW nW0nW@nWPnW`nWpnW€nW�nW n W°n WÀn R#©N) ÚwidthÚinitial_indentÚsubsequent_indentÚ expand_tabsÚreplace_whitespaceÚfix_sentence_endingsÚbreak_long_wordsÚdrop_whitespaceÚbreak_on_hyphensÚtabsizer r ) Úselfrrrrrrrrrrr r s &&&&&&&&&&&$$Ú//opt/alt/python314/lib64/python3.14/textwrap.pyÚ__init__ÚTextWrapper.__init__psI€ðŒ Ø,ÔØ!2ÔØ&ÔØ"4ÔØ$8Ô!Ø 0ÔØ.ÔØ 0ÔØŒ Ø"ŒØ&Öóc óº€VP'dVPVP4pVP'dVP VP 4pV#)z½_munge_whitespace(text : string) -> string Munge whitespace in text: expand tabs and convert all other whitespace characters to spaces. Eg. " foo\tbar\n\nbaz" becomes " foo bar baz". )rÚ expandtabsrrÚ translateÚunicode_whitespace_trans©rÚtexts&&rÚ_munge_whitespaceÚTextWrapper._munge_whitespace�sG€ð × × Ð Ø—?‘? 4§<¡<Ó0ˆDØ × "× "Ð "Ø—>‘> $×"?Ñ"?Ó@ˆD؈ rc óÒ€VPRJdVPPV4pMVPPV4pVUu.uFq3'gK VNK ppV#uupi)aî_split(text : string) -> [string] Split the text to wrap into indivisible chunks. Chunks are not quite the same as words; see _wrap_chunks() for full details. As an example, the text Look, goof-ball -- use the -b option! breaks into the following chunks: 'Look,', ' ', 'goof-', 'ball', ' ', '--', ' ', 'use', ' ', 'the', ' ', '-b', ' ', 'option!' if break_on_hyphens is True, or in: 'Look,', ' ', 'goof-ball', ' ', '--', ' ', 'use', ' ', 'the', ' ', '-b', ' ', option!' otherwise. T)rÚ wordsep_reÚsplitÚwordsep_simple_re)rr"ÚchunksÚcs&& rÚ_splitÚTextWrapper._split�s^€ð × Ñ  DÓ (Ø—_‘_×*Ñ*¨4Ó0‰Fà×+Ñ+×1Ñ1°$Ó7ˆFÙ#Ó)™V˜£q—!�!™VˆÐ)؈ ùò*s Á A$ÁA$c óö€^pVPPpV\V4^, 8dJW^,,R8Xd+V!W,4'dRW^,&V^, pKUV^, pK`R#)a7_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. rz N)Úsentence_end_reÚsearchÚlen)rr)ÚiÚ patsearchs&& rÚ_fix_sentence_endingsÚ!TextWrapper._fix_sentence_endings³sf€ð ˆØ×(Ñ(×/Ñ/ˆ Ø”#�f“+˜a•-ÔØ˜•c�{˜cÔ!¡i°µ ×&:Ò&:Ø"�˜•s‘ Ø�Q•’à�Q•’ñ  rc ó€V^8d^pMWC, pVP'dµV^8”d®TpVR,pVP'dt\V4V8”ddVPR^V4pV^8”dJ\;QJdRVRV4F 'gK RM RM!RVRV44'd V^,pVP VRV4WvRVR&R#V'g"VP VP 44R#R#)zâ_handle_long_word(chunks : [string], cur_line : [string], cur_len : int, width : int) Handle a chunk of text (most likely a word, not whitespace) that is too long to fit in any line. Ú-c3ó*"€TF qR8gx€K R#5i)r6N©)Ú.0r*s& rÚ Ú0TextWrapper._handle_long_word..Ýsé€Ð%G¹°1¨3¦h»ùs‚NTFéÿÿÿÿ)rrr0ÚrfindÚanyÚappendÚpop) rÚreversed_chunksÚcur_lineÚcur_lenrÚ space_leftÚendÚchunkÚhyphens &&&&& rÚ_handle_long_wordÚTextWrapper._handle_long_wordÅsà€ð �1Œ9؉Jà�ˆJð × × Ð  Z°!¤^؈CØ# BÕ'ˆEØ×$×$Ð$¬¨U«°jÔ)@🙠S¨!¨ZÓ8�ؘA”:§#£#Ñ%G¸¸g¸v¹Ó%G§#§#¢#Ñ%G¸¸g¸v¹Ó%G×"GÒ"GØ  1�*�CØ �O‰O˜E $ 3˜KÔ (Ø"'¨ +ˆO˜BÓ ÷ Ø �O‰O˜O×/Ñ/Ó1Ö 2ñrc ó^€.pVP^8:d\RVP,4hVPexVP^8”dVPpM VPp\ V4\ VP P44,VP8”d \R4hVP4V'Ed`.p^pV'dVPpM VPpVP\ V4, pVP'd(VR,P4R8Xd V'dVRV'dJ\ VR,4pWW,V8:d*VPVP44WW, pKPV'dC\ VR,4V8”d,VPWWV4\\\ V44pVP'dAV'd9VR,P4R8XdV\ VR,4,pVRV'gEK{VPeo\ V4^,VP8gNV'd@VP'd^\ V4^8XdNV^,P4'g1WV8:d+VPVRP!V4,4EK!V'd£VR,P4'dhV\ VP 4,V8:dGVPVP 4VPVRP!V4,4V#V\ VR,4,pVRKªV'ddVR,P#4p\ V4\ VP 4,VP8:dW€P ,VR&V#VPW0P P4,4V#V#)aO_wrap_chunks(chunks : [string]) -> [string] Wrap a sequence of text chunks and return a list of lines of length 'self.width' or less. (If 'break_long_words' is false, some lines may be longer than this.) Chunks correspond roughly to words and the whitespace between them: each chunk is indivisible (modulo 'break_long_words'), but a line break can come between any two chunks. Chunks should not have internal whitespace; ie. a chunk is either all whitespace or a "word". Whitespace chunks will be removed from the beginning and end of lines, but apart from that whitespace is preserved. zinvalid width %r (must be > 0)z#placeholder too large for max widthÚr<)rÚ ValueErrorr rrr0r ÚlstripÚreverserÚstripr?r@rHÚsumÚmapÚjoinÚrstrip) rr)ÚlinesÚindentrBrCrÚlÚ prev_lines && rÚ _wrap_chunksÚTextWrapper._wrap_chunksîs!€ðˆØ �:‰:˜Œ?ÜÐ=ÀÇ Á ÕJÓKÐ KØ �>‰>Ò %Ø�~‰~ Ô!Ø×/Ñ/‘à×,Ñ,�Ü�6‹{œS ×!1Ñ!1×!8Ñ!8Ó!:Ó;Õ;¸d¿j¹jÔHÜ Ð!FÓGÐGð �‰ÔçˆfðˆH؈G÷Ø×/Ñ/‘à×,Ñ,�ð—J‘J¤ V£Õ,ˆEð×#×#Ð#¨¨r­ ×(8Ñ(8Ó(:¸bÔ(@ÇUؘ2�Jçܘ˜r� “O�ð•; %Ô'Ø—O‘O F§J¡J£LÔ1Ø•L’Gð÷œ#˜f R�j›/¨EÔ1Ø×&Ñ& v¸ÔHÜœc¤# xÓ0Ó1�ð×#×#Ð#¯°X¸bµ\×5GÑ5GÓ5IÈRÔ5OØœ3˜x¨�|Ó,Õ,�ؘR�LçŠxØ—N‘NÒ*ܘ“J •N T§^¡^Ô3ߨ×)×)Ð)ܘ“[ AÔ%Ø �Ÿ™×*Ò*°Ô0@ð—L‘L ¨"¯'©'°(Ó*;Õ!;×<ç"Ø$ R�L×.Ñ.×0Ò0Ø#¤c¨$×*:Ñ*:Ó&;Õ;¸uÔDØ$ŸO™O¨D×,<Ñ,<Ô=Ø!ŸL™L¨°"·'±'¸(Ó2CÕ)CÔDØ!ðàˆ ð ¤3 x°¥|Ó#4Õ4˜Ø$ RšLç Ø(-¨b­ ×(8Ñ(8Ó(:˜IÜ # I£´°T×5EÑ5EÓ1FÕ FØ$(§J¡Jô!/à,5×8HÑ8HÕ,H  b¡ Ø %ðˆ 🠙  V×.>Ñ.>×.EÑ.EÓ.GÕ%GÔHØàˆ ˆuˆ rcóF€VPV4pVPV4#r )r#r+r!s&&rÚ _split_chunksÚTextWrapper._split_chunksUs!€Ø×%Ñ% dÓ+ˆØ�{‰{˜4Ó Ð rc óŒ€VPV4pVP'dVPV4VPV4#)a.wrap(text : string) -> [string] Reformat the single paragraph in 'text' so it fits in lines of no more than 'self.width' columns, and return a list of wrapped lines. Tabs in 'text' are expanded with string.expandtabs(), and all other whitespace characters (including newline) are converted to space. )r[rr3rX)rr"r)s&& rÚwrapÚTextWrapper.wrap[s?€ð×#Ñ# DÓ)ˆØ × $× $Ð $Ø × &Ñ & vÔ .Ø× Ñ  Ó(Ð(rc óB€RPVPV44#)z¾fill(text : string) -> string Reformat the single paragraph in 'text' to fit in lines of no more than 'self.width' columns, and return a new string containing the entire wrapped paragraph. Ú )rRr^r!s&&rÚfillÚTextWrapper.fillis€ð�y‰y˜Ÿ™ 4›Ó)Ð)r) rrrrrrr r rrrr) éFrKrKTTFTTTé)!Ú__name__Ú __module__Ú __qualname__Ú__firstlineno__Ú__doc__ÚdictÚfromkeysrQÚordÚ _whitespacer Ú word_punctÚletterÚreÚescapeÚ whitespaceÚ nowhitespaceÚcompileÚVERBOSEr&r(r.rr#r+r3rHrXr[r^rbÚ__static_attributes__Ú__classdictcell__)Ú __classdict__s@rrrsø‡€ñ.ð` $Ÿ}™}©S°°kÓ-BÁCÈÃHÓMÐð!€JØ €Fؘ2Ÿ9š9 [Ó1Õ1€Jؘ* R�.Õ(€LØ—’ð ð�j $¨Ø�j %¨ð7õ7ð" � ‰ ó#€Jð$ �F˜Lð Ÿ š  8¨jÕ#8Ó9ÐØð—j’jð"'ó(€Oñ 'ð ð'ð&õ'ò> òò,ò$!3òReòN!ò )÷*ð*rc ó>€\RRV/VBpVPV4#)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. rr8)rr^©r"rÚkwargsÚws&&, rr^r^us$€ô Ñ*˜%Ð* 6Ñ*€AØ �6‰6�$‹<Ðrc ó>€\RRV/VBpVPV4#)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. rr8)rrbr{s&&, rrbrb‚s$€ô Ñ*˜%Ð* 6Ñ*€AØ �6‰6�$‹<Ðrc ó˜€\RRVR^/VBpVPRPVP4P 444#)a‹Collapse and truncate the given text to fit in the given width. The text first has its whitespace collapsed. If it then fits in the *width*, it is returned as is. Otherwise, as many words as possible are joined and then the placeholder is appended:: >>> textwrap.shorten("Hello world!", width=12) 'Hello world!' >>> textwrap.shorten("Hello world!", width=11) 'Hello [...]' rr rr8)rrbrRrOr'r{s&&, rÚshortenr€ŽsB€ô Ñ7˜%Ð7¨1Ð7°Ñ7€AØ �6‰6�#—(‘(˜4Ÿ:™:›<×-Ñ-Ó/Ó0Ó 1Ð1rcó€VPR4pTUu.uF&q3'gK TP 4'dK$TNK( pp\ TRR7p\TRR7p^p\T4FwrxY†T,8wg TR9gKM RPTUu.uFq3P 4'gY7RMRNK up4# \\3d'R\T4P: 2p\T4Rhi;iuupiuupi)aÃRemove any common leading whitespace from every line in `text`. This can be used to make triple-quoted strings line up with the left edge of the display, while still presenting them in the source code in indented form. Note that tabs and spaces are both treated as whitespace, but they are not equal: the lines " hello" and "\thello" are considered to have no common leading whitespace. Entirely blank lines are normalized to a newline character. razexpected str object, not NrK)Údefaultz ) r'ÚAttributeErrorÚ TypeErrorÚtyperhÚisspaceÚminÚmaxÚ enumeraterR) r"rTÚmsgrVÚnon_blank_linesÚl1Úl2Úmarginr*s & rÚdedentr� sí€ð'Ø— ‘ ˜4Ó ˆñ #(ÓA¡%˜Q«1”q°Q·Y±Y·[—q�q¡%€OÐAÜ ˆ_ bÔ )€BÜ ˆ_ bÔ )€BØ €Fܘr–]‰ ˆØ �6• Œ?˜a užnÙ ñ#ð �9‰9ÁUÓKÁUÀ¯ © ¯ ª �a˜‘j¸Ò;ÁUÑKÓ LÐLøô œIÐ &ô'Ø)¬$¨t«*×*AÑ*AÑ)DÐEˆÜ˜‹n $Ð&ð'üò BùòLs ‚C— C?¥C?½C?Â$DÃ7C<cób€.pVfRVPR4F;pVP4'gVPV4VPV4K= MHVPR4F3pV!V4'dVPV4VPV4K5 RPV4#)a2Adds 'prefix' to the beginning of selected lines in 'text'. If 'predicate' is provided, 'prefix' will only be added to the lines where 'predicate(line)' is True. If 'predicate' is not provided, it will default to adding 'prefix' to all non-empty lines that do not consist solely of whitespace characters. TrK)Ú splitlinesr†r?rR)r"ÚprefixÚ predicateÚprefixed_linesÚlines&&& rrUrU¿s–€ð€NØÒð—O‘O DÖ)ˆDØ—<‘<—>’>Ø×%Ñ% fÔ-Ø × !Ñ ! $Ö 'ò*ð —O‘O DÖ)ˆDÙ˜�ŠØ×%Ñ% fÔ-Ø × !Ñ ! $Ö 'ñ*ð �7‰7�>Ó "Ð"rÚ__main__z Hello there. This is indented.)rr^rbr�rUr€)rdr ) rjrqÚ__all__rnrr^rbr€r�rUrfÚprintr8rrÚr™saðñó â H€ð  € ÷_*ñ_*ôH ô ò 2ò$Mô>#ð2 ˆzÔñ ‰&Ð4Ó 5Ö6ñr