Possible Duplicate:
HOWTO: Fix Python Indentation
I have Python library where only 2 spaces indentation was used. I need automated way to convert all files to 4 spaces indentation. Is there any tool/script/editor for that?
Plz don’t suggest Emacs.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try the reindent script by Tim Peters, it was designed specifically for converting Python files to 4-space indentation.
For users with Python 3.9 or newer consider using reindent latest version.