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

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


��Qc@s#dZdZddd��YZdS(s=Provides "Strip trailing whitespace" under the "Format" menu.s)Roger D. Serwy <roger.serwy at gmail.com>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	cCs�|jj}|jj}|j�tt|jd���d}xatd|�D]P}|jd|d|�}t	|j
��}|jd||fd|�qQW|j�dS(Ntendis%i.0s%i.0 lineends%i.%i(
RRtundotundo_block_starttinttfloattindextrangetgettlentrstriptdeletetundo_block_stop(RteventRR	tend_linetcurttxttcut((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	N((t__doc__t
__author__R(((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 webmaster@9p.io.