ok
Direktori : /opt/alt/python36/lib64/python3.6/idlelib/__pycache__/ |
Current File : //opt/alt/python36/lib64/python3.6/idlelib/__pycache__/rstrip.cpython-36.opt-2.pyc |
3 ��2ad � @ s2 G d d� d�Z edkr.ddlmZ eddd� dS ) c @ s e Zd Zdd� Zddd�ZdS )�Rstripc C s || _ d S )N)�editwin)�selfr � r �+/opt/alt/python36/lib64/python3.6/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)r r Zunittestr r r r r �<module> s