[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: [Tutor] Spaces and tabs messing up code

Bill Burns

1/9/2008 12:57:00 AM

mobiledreamers@gmail.com wrote:
> my friend uses vim
> and i use xemacs
> so our shared python code is a mix of tabs and spaces and it is hard for
> him to edit it in vim
>
> any idea on how to make it clean
> convert it all to 4 spaces?
>
> Thanks
>

Take a look at reindent.py. This script lives in your Python distribution.

On my Windows box it lives here:

C:\Python24\Tools\Scripts\reindent.py

HTH,

Bill