space/tab conversion utility?

Brian van den Broek bvande at po-box.mcgill.ca
Wed Jul 28 18:04:33 EDT 2004


Grant Edwards said unto the world upon 28/07/2004 17:49:

> Is there any utility to convert Python sources from space-based
> block indentation to tab-based?
> 
> You can use "expand" convert from tabs->spaces, but "unexpand"
> isn't bright enough to do the reverse.
> 

Hi,

<http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65226>

There are a couple of other tab/space recipes on the site, too.

Best,

Brian vdB




More information about the Python-list mailing list