Skip to content

Instantly share code, notes, and snippets.

@Deadlyelder
Created June 27, 2019 12:12
Show Gist options
  • Save Deadlyelder/1f5790815b4085f347fb0506008c8a36 to your computer and use it in GitHub Desktop.
Save Deadlyelder/1f5790815b4085f347fb0506008c8a36 to your computer and use it in GitHub Desktop.
Dirty script to clean python indents

Quickyl correct the indentation issues in a given python file

perl -i.bak -pe "s/\t/' 'x(8-pos()%8)/eg" filename.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment