ok
Direktori : /opt/alt/python36/lib64/python3.6/idlelib/__pycache__/ |
Current File : //opt/alt/python36/lib64/python3.6/idlelib/__pycache__/rstrip.cpython-36.pyc |
3 *j�ad � @ s6 d Z G dd� d�Zedkr2ddlmZ eddd� d S ) z=Provides "Strip trailing whitespace" under the "Format" menu.c @ s e Zd Zdd� Zddd�ZdS )�Rstripc C s || _ d S )N)�editwin)�selfr � r �3/opt/alt/python36/lib64/python3.6/idlelib/rstrip.py�__init__ s zRstrip.__init__Nc C s� | j j}| j j}|j� tt|jd���}xZtd|�D ]L}|jd| d| �}t |�}t |j � �}||k r6|jd||f d| � q6W |j� d S )N�end� z%i.0z%i.endz%i.%i) r �text�undoZundo_block_start�int�float�index�range�get�len�rstrip�deleteZundo_block_stop) r Zeventr r Zend_lineZcurZtxt�rawZcutr r r � do_rstrip s zRstrip.do_rstrip)N)�__name__� __module__�__qualname__r r r r r r r s r �__main__� )�mainzidlelib.idle_test.test_rstrip� )� verbosityN)�__doc__r r Zunittestr r r r r �<module> s