Saturday, August 2, 2014

Python - fix indent on existing files

To fix indentation on existing python code on Ubuntu:
sudo apt-get install python-examples
Then to fix all files in the current directory:
/usr/share/doc/python2.7/examples/Tools/scripts/reindent.py .

No comments:

Post a Comment