[issue5150] IDLE to support reindent.py

Roger Serwy report at bugs.python.org
Sat Oct 16 01:28:12 CEST 2010


Roger Serwy <roger.serwy at gmail.com> added the comment:

I grabbed the core of reindent.py and put it into an extension, unmodified. 

The original reindent.py will emit Indentation Errors if they exist. 
ScriptBinding already has nice code to handle these problems by highlighting the error, placing the cursor at the error, and presenting a message box. Rather than duplicate this code, this extension makes calls into ScriptBinding to check for syntax errors when the core reindent code throws exceptions.

----------
Added file: http://bugs.python.org/file19247/ReindentExtension.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5150>
_______________________________________


More information about the Python-bugs-list mailing list