reindent.py is a great script utility that converts any python.py file into one using indentation with 4 spaces and no tabs.
This is useful for "normalizing" code from disparate sources if you agree to agree to the four-dimensional standard. (Or, if you need tabs, you can run the reindent.py command, followed by the unix unexpand .)
PS. Your Python installation may have the reindent.py file installed in the Tools or Samples folder. On Ubuntu, it is provided by the python-examples package and is located in /usr/share/doc/python2.6/examples/Tools/scripts/reindent.py .
unutbu
source share