Éric Araujo | a0e92a8 | 2011-07-26 18:01:08 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
Benjamin Peterson | ded31c4 | 2009-03-30 15:04:16 +0000 | [diff] [blame] | 2 | |
| 3 | # Make a reST file compliant to our pre-commit hook. |
| 4 | # Currently just remove trailing whitespace. |
| 5 | |
Georg Brandl | a9afb68 | 2010-10-21 12:49:28 +0000 | [diff] [blame] | 6 | import sys |
Georg Brandl | 17b9e27 | 2009-03-31 22:46:50 +0000 | [diff] [blame] | 7 | |
Georg Brandl | a9afb68 | 2010-10-21 12:49:28 +0000 | [diff] [blame] | 8 | import patchcheck |
Benjamin Peterson | ded31c4 | 2009-03-30 15:04:16 +0000 | [diff] [blame] | 9 | |
| 10 | def main(argv=sys.argv): |
Georg Brandl | a9afb68 | 2010-10-21 12:49:28 +0000 | [diff] [blame] | 11 | patchcheck.normalize_docs_whitespace(argv[1:]) |
Benjamin Peterson | ded31c4 | 2009-03-30 15:04:16 +0000 | [diff] [blame] | 12 | |
| 13 | if __name__ == '__main__': |
| 14 | sys.exit(main()) |