�`^c@sQdZdd
d��YZedkrMddlZejdddd e�ndS(s=Provides "Strip trailing whitespace" under the "Format" menu.tRstripExtensioncBs2eZdddgfgZd�Zdd�ZRS(tformatsStrip trailing whitespaces
<<do-rstrip>>cCs&||_|jjjd|j�dS(Ns
<<do-rstrip>>(teditwinttexttbindt do_rstrip(tselfR((s-/sys/lib/python2.7/idlelib/RstripExtension.pyt__init__s c Cs�|jj}|jj}|j�tt|jd���}x|td|�D]k}|jd|d|�}t |�}t |j
��}||krM|jd||fd|�qMqMW|j�dS(Ntendis%i.0s%i.ends%i.%i(
RRtundotundo_block_starttinttfloattindextrangetgettlentrstriptdeletetundo_block_stop( RteventRR tend_linetcurttxttrawtcut((s-/sys/lib/python2.7/idlelib/RstripExtension.pyRs
%N(sStrip trailing whitespaces
<<do-rstrip>>(t__name__t
__module__tNonetmenudefsRR(((s-/sys/lib/python2.7/idlelib/RstripExtension.pyRs t__main__i�Nsidlelib.idle_test.test_rstript verbosityitexit((t__doc__RRtunittesttmaintFalse(((s-/sys/lib/python2.7/idlelib/RstripExtension.pyt<module>s
|