Python Source Reformatter?

Steve Holden sholden at holdenweb.com
Sat Aug 4 18:35:41 EDT 2001


Youir best solution to this problem would probably be to use a text editor
with block indent/outdent capabilities. There's a redent.py program, but I
think it retains the existing indentation level rather than computing what
level it's at and using the appropriate leading space string.

regards
 Steve
--
http://www.holdenweb.com/


"David Fuess" <fuess1 at home.com> wrote in message
news:ve9omtgkm22rseoibo0fkfnsnlp02e0j1r at 4ax.com...
> I put together a single source by copying in only the parts I needed
> from many test / example programs [mostly mine :-)]. Unfortunately,
> there are indentation variations among the various parts. While it
> runs fine, it makes editing difficult because the indent scale is
> constantly changing. Does anyone know of a reformatter for Python that
> can put everything on the same indent scale?
>
> Thanks,
> Dave





More information about the Python-list mailing list