관리-도구
편집 파일: AutoExpand.cpython-33.pyc
� ��f� c @ s/ d d l Z d d l Z Gd d � d � Z d S( i Nc B sj | Ee Z d Z d d g f g Z e j e j d Z d d � Z d d � Z d d � Z d d � Z d S( u AutoExpandu editu E_xpand Wordu <<expand-word>>u _c C s | j | _ d | _ d S( N( u textu Noneu state( u selfu editwin( ( u7 /opt/alt/python33/lib64/python3.3/idlelib/AutoExpand.pyu __init__ s u AutoExpand.__init__c C sT | j j d � } | j j d d � } | j sE | j � } d } nB | j \ } } } } | | k sr | | k r� | j � } d } n | s� | j j � d S| j � } | j j d t | � d � | | } | d t | � } | d k r| j j � n | j j d | � | j j d � } | j j d d � } | | | | f | _ d S( Nu insertu insert linestartu insert lineendi u breaku insert - %d charsi ( u textu indexu getu stateu getwordsu bellu getprevwordu deleteu lenu insert( u selfu eventu curinsertu curlineu wordsu indexu insertu lineu wordu newword( ( u7 /opt/alt/python33/lib64/python3.3/idlelib/AutoExpand.pyu expand_word_event s. u AutoExpand.expand_word_eventc C s- | j � } | s g S| j j d d � } t j d | d | � } ~ | j j d d � } t j d | d | � } ~ | r� | r� g Sg } i } | j � x: | D]2 } | j | � r� q� n | j | � | | | <q� Wx: | D]2 } | j | � rq� n | j | � | | | <q� W| j | � | S( Nu 1.0u insert wordstartu \bu \w+\bu insert wordendu end( u getprevwordu textu getu reu findallu reverseu append( u selfu wordu beforeu wbeforeu afteru wafteru wordsu dictu w( ( u7 /opt/alt/python33/lib64/python3.3/idlelib/AutoExpand.pyu getwords0 s4 u AutoExpand.getwordsc C sc | j j d d � } t | � } x1 | d k rT | | d | j k rT | d } q$ W| | d � S( Nu insert linestartu inserti i ( u textu getu lenu wordchars( u selfu lineu i( ( u7 /opt/alt/python33/lib64/python3.3/idlelib/AutoExpand.pyu getprevwordN s &u AutoExpand.getprevwordN( u E_xpand Wordu <<expand-word>>( u __name__u __module__u __qualname__u menudefsu stringu ascii_lettersu digitsu wordcharsu __init__u expand_word_eventu getwordsu getprevword( u __locals__( ( u7 /opt/alt/python33/lib64/python3.3/idlelib/AutoExpand.pyu AutoExpand s u AutoExpand( u stringu reu AutoExpand( ( ( u7 /opt/alt/python33/lib64/python3.3/idlelib/AutoExpand.pyu <module> s