Indentation on WinNT

Tim Peters tim_one at email.msn.com
Thu May 6 01:06:36 EDT 1999


[Gaetan Corneau]
> MKS Toolkit is a good package. But the expand/unexpand tool is an easy
> Python project :)

[Tres Seaver]
> Unless you suffer from acute advanced NIH disease, use Timbot's
> tabnanny.py (check dejanews for source).

tabanny is in the distribution (look under Tools/Scripts/).  But given the
nature of the Timbot, it doesn't fix anything, it just *whines* <wink>.
When it does complain, untabify.py (also in Tools/Scripts/) might be able to
fix it.

Fancier cases can be handled by Gordon McMillan's tabcleaner.py, but given
the nature of the Gordon that's darned hard to find.  Here's a link to his
site, found via relentlessly botlike poke-and-hope'ing:

    http://www.mcmillan-inc.com/dnld/tabcleaner.py

Should also note that any number of editors can tabify/untabify too,
including a Python-aware set of cmds in the Emacs pymode.

better-still-don't-use-tabs-and-there's-nothing-to-fix-ly y'rs  - tim






More information about the Python-list mailing list