ok
Mini Shell
3
� fd�@s6dZGdd�d�Zedkr2ddlmZeddd�d S)
z=Provides "Strip trailing whitespace" under the "Format" menu.c@seZdZdd�Zddd�ZdS)�RstripcCs
||_dS)N)�editwin)�selfr�r�3/opt/alt/python36/lib64/python3.6/idlelib/rstrip.py�__init__szRstrip.__init__Nc Cs�|jj}|jj}|j�tt|jd���}xZtd|�D]L}|jd|d|�}t |�}t |j
��}||kr6|jd||fd|�q6W|j�dS)N�end�z%i.0z%i.endz%i.%i)
r�text�undoZundo_block_start�int�float�index�range�get�len�rstrip�deleteZundo_block_stop) rZeventr r
Zend_lineZcurZtxt�rawZcutrrr� do_rstripszRstrip.do_rstrip)N)�__name__�
__module__�__qualname__rrrrrrrsr�__main__�)�mainzidlelib.idle_test.test_rstrip�)� verbosityN)�__doc__rrZunittestrrrrr�<module>s
Zerion Mini Shell 1.0