Georg Brandl | 392775f | 2009-03-28 19:33:33 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # Make a reST file compliant to our pre-commit hook. |
| 4 | # Currently just remove trailing whitespace. |
| 5 | |
Georg Brandl | ef212e0 | 2010-11-26 08:04:57 +0000 | [diff] [blame] | 6 | import sys |
Georg Brandl | 392775f | 2009-03-28 19:33:33 +0000 | [diff] [blame] | 7 | |
Georg Brandl | ef212e0 | 2010-11-26 08:04:57 +0000 | [diff] [blame] | 8 | import patchcheck |
Georg Brandl | 392775f | 2009-03-28 19:33:33 +0000 | [diff] [blame] | 9 | |
| 10 | def main(argv=sys.argv): |
Georg Brandl | ef212e0 | 2010-11-26 08:04:57 +0000 | [diff] [blame] | 11 | patchcheck.normalize_docs_whitespace(argv[1:]) |
Georg Brandl | 392775f | 2009-03-28 19:33:33 +0000 | [diff] [blame] | 12 | |
| 13 | if __name__ == '__main__': |
| 14 | sys.exit(main()) |