classification
Title: IDLE to support reindent.py
Type: feature request Stage: needs patch
Components: IDLE Versions: Python 3.1, Python 2.7
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: gpolo, kbk, rhettinger, serwy, tjreedy (5)
Priority: normal Keywords

Created on 2009-02-04 08:37 by rhettinger, last changed 2009-08-13 18:07 by gpolo.

Files
File name Uploaded Description Edit Remove
RstripExtension.py serwy, 2009-05-29 00:05 rstrip extension
Messages (6)
msg81131 - (view) Author: Raymond Hettinger (rhettinger) Date: 2009-02-04 08:37
Add rstrip() to the Format menu.

Python's svn repository no longer accepts files with trailing whitespace
and it is often necessary to run reindent.py before submitting.  It
would be nice to have this as a built-in formatting tool.
msg81301 - (view) Author: Terry J. Reedy (tjreedy) Date: 2009-02-06 21:50
If the interactive interpreter did not require blank lines within blocks
to have at least one 'trailing' space to avoid prematurely ending the
block (as when copy from editor window and paste), IDLE could
automatically rstrip lines.  Given that that should not be done, a menu
item would be nice.
msg88490 - (view) Author: Roger Serwy (serwy) Date: 2009-05-29 00:05
Here's an extension that adds rstrip() to the Format menu.
msg88492 - (view) Author: Raymond Hettinger (rhettinger) Date: 2009-05-29 01:23
Applied in r72999.  Will backport to 2.7.
msg88495 - (view) Author: Raymond Hettinger (rhettinger) Date: 2009-05-29 01:52
Backported in r73001
msg91528 - (view) Author: Guilherme Polo (gpolo) Date: 2009-08-13 18:07
This has been closed but why not promote reindent.py to a module and add
an option on IDLE to allow a complete reindent.py run ?
History
Date User Action Args
2009-08-13 18:07:28gpolosetmessages: + msg91528
2009-05-29 01:52:33rhettingersetstatus: open -> closed

messages: + msg88495
2009-05-29 01:23:16rhettingersetassignee: kbk -> rhettinger
resolution: accepted
messages: + msg88492
2009-05-29 00:05:15serwysetfiles: + RstripExtension.py
nosy: + serwy
messages: + msg88490

2009-04-26 22:18:25ajaksu2setnosy: + gpolo

stage: needs patch
2009-02-06 21:50:38tjreedysetnosy: + tjreedy
messages: + msg81301
2009-02-04 08:37:42rhettingercreate