Ë Žd‰+NºÖãóX—dZddlZddlZGd„d«Zedk(rddlmZedd¬ «yy) a=Complete the current word before the cursor with words in the editor. Each menu selection or shortcut key selection replaces the word with a different word with the same prefix. The search for matches begins before the target and moves toward the top of the editor. It then starts after the cursor and moves down. It then returns to the original word and the cycle starts again. Changing the current text line or leaving the cursor in a different place before requesting the next selection causes AutoExpand to reset its state. There is only one instance of Autoexpand. éNcó\—eZdZejej zdzZd„Zd„Zd„Z d„Z y)Ú AutoExpandÚ_cój—|j|_|jj|_d|_y)N)ÚtextÚbellÚstate)ÚselfÚeditwins ú)/usr/lib/python3.12/idlelib/autoexpand.pyÚ__init__zAutoExpand.__init__s#€Ø—L‘LˆŒ Ø—I‘I—N‘NˆŒ ؈� ócó²—|jjd«}|jjdd«}|js|j «}d}n-|j\}}}}||k7s||k7r|j «}d}|s|j «y|j «}|jjdt|«zd«||} |dzt|«z}|dk(r|j «|jjd| «|jjd«}|jjdd«}||||f|_y)z1Replace the current word with the next expansion.Úinsertúinsert linestartzinsert lineendrÚbreakzinsert - %d charsé) rÚindexÚgetr ÚgetwordsrÚ getprevwordÚdeleteÚlenr) r ÚeventÚ curinsertÚcurlineÚwordsrrÚlineÚwordÚnewwords r Úexpand_word_eventzAutoExpand.expand_word_events&€à—I‘I—O‘O HÓ-ˆ Ø—)‘)—-‘-Ð 2Ð4DÓEˆØ�zŠzØ—M‘M“OˆE؉Eà)-¯©Ñ &ˆE�5˜& $ؘÒ" d¨g¢oØŸ ™ ›�Ø�ÙØ �I‰IŒKØØ×ÑÓ!ˆØ � ‰ ×ÑÐ,¬s°4«yÑ8¸(ÔCؘ‘,ˆØ˜‘œc %›jÑ(ˆØ �AŠ:Ø �I‰IŒKØ � ‰ ×ј 7Ô+Ø—I‘I—O‘O HÓ-ˆ Ø—)‘)—-‘-Ð 2Ð4DÓEˆØ˜E 9¨gÐ5ˆŒ Ørcó$—|j«}|sgS|jjdd«}tjd|zdz|«}~|jjdd«}tjd|zdz|«}~|s|sgSg}i}|j «|D]*}|j|«rŒ|j |«|||<Œ,|D]*}|j|«rŒ|j |«|||<Œ,|j |«|S)z?Return a list of words that match the prefix before the cursor.z1.0zinsert wordstartz\bz\w+\bzinsert wordendÚend)rrrÚreÚfindallÚreverseÚappend) r rÚbeforeÚwbeforeÚafterÚwafterrÚdictÚws r rzAutoExpand.getwords6s€à×ÑÓ!ˆÙ؈IØ—‘—‘˜uÐ&8Ó9ˆÜ—*‘*˜U T™\¨HÑ4°fÓ=ˆØ Ø— ‘ — ‘ Ð.°Ó6ˆÜ—‘˜E D™L¨8Ñ3°UÓ;ˆØ Ù™v؈I؈؈à�‰ÔÛˆAØ�x‰x˜Œ{ØØ �L‰L˜ŒO؈D�ŠGð ó ˆAØ�x‰x˜Œ{ØØ �L‰L˜ŒO؈D�ŠGð ð � ‰ �TÔØˆ rcóÊ—|jjdd«}t|«}|dkDr3||dz |jvr|dz }|dkDr||dz |jvrŒ||dS)z)Return the word prefix before the cursor.rrrrN)rrrÚ wordchars)r rÚis r rzAutoExpand.getprevwordUsj€à�y‰y�}‰}Ð/°Ó:ˆÜ �‹IˆØ�!Še˜˜Q˜q™S™  T§^¡^Ñ3Ø�!‘ˆAð�!Še˜˜Q˜q™S™  T§^¡^Ò3à�A�BˆxˆrN) Ú__name__Ú __module__Ú __qualname__ÚstringÚ ascii_lettersÚdigitsr/r r!rr©rr rrs/„Ø×$Ñ$ v§}¡}Ñ4°sÑ:€Iòò ò6ó>rrÚ__main__)Úmainz!idlelib.idle_test.test_autoexpandé)Ú verbosity)Ú__doc__r$r4rr1Úunittestr9r7rr Úr>s<ðñ ó Û ÷HñHðV ˆzÒÝÙÐ ,¸Ö:ðr