uawdijnntqw1x1x1
IP : 216.73.216.74
Hostname : www.vorobey-market.ru
Kernel : Linux www.vorobey-market.ru 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
lib64
/
krb5
/
..
/
python2.7
/
idlelib
/
RstripExtension.py
/
/
'Provides "Strip trailing whitespace" under the "Format" menu.' __author__ = "Roger D. Serwy <roger.serwy at gmail.com>" class RstripExtension: menudefs = [ ('format', [None, ('Strip trailing whitespace', '<<do-rstrip>>'), ]),] def __init__(self, editwin): self.editwin = editwin self.editwin.text.bind("<<do-rstrip>>", self.do_rstrip) def do_rstrip(self, event=None): text = self.editwin.text undo = self.editwin.undo undo.undo_block_start() end_line = int(float(text.index('end'))) + 1 for cur in range(1, end_line): txt = text.get('%i.0' % cur, '%i.0 lineend' % cur) cut = len(txt.rstrip()) text.delete('%i.%i' % (cur, cut), '%i.0 lineend' % cur) undo.undo_block_stop()
/home/../lib64/krb5/../python2.7/idlelib/RstripExtension.py