MINI MINI MANI MO

Path : /lib64/python2.7/idlelib/
File Upload :
Current File : //lib64/python2.7/idlelib/AutoExpand.pyc

ó
Eì]c@s/ddlZddlZddd„ƒYZdS(iÿÿÿÿNt
AutoExpandcBsReZddgfgZejejdZd„Zd„Zd„Z	d„Z
RS(	teditsE_xpand Words<<expand-word>>t_cCs|j|_d|_dS(N(ttexttNonetstate(tselfteditwin((s*/usr/lib64/python2.7/idlelib/AutoExpand.pyt__init__sc
CsT|jjdƒ}|jjddƒ}|jsE|jƒ}d}nB|j\}}}}||ksr||kr‡|jƒ}d}n|sž|jjƒdS|jƒ}|jjdt|ƒdƒ||}	|dt|ƒ}|dkr|jjƒn|jj	d|	ƒ|jjdƒ}|jjddƒ}||||f|_dS(Ntinsertsinsert linestartsinsert lineenditbreaksinsert - %d charsi(
RtindextgetRtgetwordstbelltgetprevwordtdeletetlenR	(
Rteventt	curinserttcurlinetwordsRR	tlinetwordtnewword((s*/usr/lib64/python2.7/idlelib/AutoExpand.pytexpand_word_events.			

c	Cs-|jƒ}|sgS|jjddƒ}tjd|d|ƒ}~|jjddƒ}tjd|d|ƒ}~|rŒ|rŒgSg}i}|jƒx:|D]2}|j|ƒrÄq©n|j|ƒ|||<q©Wx:|D]2}|j|ƒrqæn|j|ƒ|||<qæW|j|ƒ|S(Ns1.0sinsert wordstarts\bs\w+\bsinsert wordendtend(RRRtretfindalltreversetappend(	RRtbeforetwbeforetaftertwafterRtdicttw((s*/usr/lib64/python2.7/idlelib/AutoExpand.pyR
0s4





cCs]|jjddƒ}t|ƒ}x1|dkrT||d|jkrT|d}q$W||S(Nsinsert linestartR	ii(RRRt	wordchars(RRti((s*/usr/lib64/python2.7/idlelib/AutoExpand.pyRNs
&(sE_xpand Words<<expand-word>>(t__name__t
__module__tmenudefststringt
ascii_letterstdigitsR%RRR
R(((s*/usr/lib64/python2.7/idlelib/AutoExpand.pyRs			((R*RR(((s*/usr/lib64/python2.7/idlelib/AutoExpand.pyt<module>s

OHA YOOOO