Skip to content

Instantly share code, notes, and snippets.

View anilesec's full-sized avatar

Anilkumar anilesec

  • Saarland University
  • Saarbruecken, Germany
View GitHub Profile
@akanakia
akanakia / reindentv2.py
Created May 22, 2019 21:20
A slightly more versatile reindent.py
#! /usr/bin/env python3
# Released to the public domain, by Anshul Kanakia, 22 May 2019.
# Original code reindent.py released to the public domain, by Tim Peters, 03 October 2000.
# This version is modified to allow custom indent space values (not just 4 spaces).
# Slightly modified from reindent.py v1.0.
"""reindentv2 [-d][-r][-v] [ path ... ]
-d (--dryrun) Dry run. Analyze, but don't make any changes to, files.