~ubuntu-branches/ubuntu/trusty/python3.4/trusty-proposed

« back to all changes in this revision

Viewing changes to Tools/scripts/reindent-rst.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-11-25 09:44:27 UTC
  • Revision ID: package-import@ubuntu.com-20131125094427-lzxj8ap5w01lmo7f
Tags: upstream-3.4~b1
ImportĀ upstreamĀ versionĀ 3.4~b1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python3
 
2
 
 
3
# Make a reST file compliant to our pre-commit hook.
 
4
# Currently just remove trailing whitespace.
 
5
 
 
6
import sys
 
7
 
 
8
import patchcheck
 
9
 
 
10
def main(argv=sys.argv):
 
11
    patchcheck.normalize_docs_whitespace(argv[1:])
 
12
 
 
13
if __name__ == '__main__':
 
14
    sys.exit(main())