Skip to content

Instantly share code, notes, and snippets.

View mikewojnowicz's full-sized avatar

Michael Wojnowicz mikewojnowicz

View GitHub Profile
@amoilanen
amoilanen / tabs2spaces.py
Created January 29, 2016 15:50
Python script to replace tabs with spaces recursively for all files matching a specified file mask regex, the number of spaces if configurable
#
# Usage:
#
# python tabs2spaces.py . 2 .*\.js$
#
import argparse
import os
import re
parser = argparse.ArgumentParser(description='Replace tabs with spaces.')