I have some Python code that have inconsistent indentation. There is a lot of mixture of tabs and spaces to make the matter even worse, and even space indentation is not preserved.

The code works as expected, but it’s difficult to maintain.

How can I fix the indentation (like HTML Tidy, but for Python) without breaking the code?

14 Answers
14

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *