diff options
Diffstat (limited to 'lib/python2.7/Tools/scripts/reindent-rst.py')
-rw-r--r-- | lib/python2.7/Tools/scripts/reindent-rst.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/python2.7/Tools/scripts/reindent-rst.py b/lib/python2.7/Tools/scripts/reindent-rst.py new file mode 100644 index 0000000..88cf409 --- /dev/null +++ b/lib/python2.7/Tools/scripts/reindent-rst.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python2 + +# Make a reST file compliant to our pre-commit hook. +# Currently just remove trailing whitespace. + +import sys + +import patchcheck + +def main(argv=sys.argv): + patchcheck.normalize_docs_whitespace(argv[1:]) + +if __name__ == '__main__': + sys.exit(main()) |