Non-Indented python

Senthilkumar Thiyagarajan sthiyaga at operamail.com
Wed Nov 21 00:56:26 EST 2001


On Tue, 20 Nov 2001 23:59:21 -0500
Peter Hansen <peter at engcorp.com> wrote:

> > 
> > Is there a utility to "clean" foreign scripts so that tabs/spaces
> > issues and other stuff invisible to the programmer can be
> > weeded out?  
> 
> There's any detabbing utility on the planet, or the Tools/Scripts/
> 

On UNIX,

col -x < infile > outfile 

will replace all tabs with spaces. using -b will do the reverse. 

GNU/Linux also provides the utility "expand" to do the same, with a little more flexibility. 

HTH,
Senthil



More information about the Python-list mailing list