Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/idlelib/RstripExtension.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^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.pyRs
%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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].