blob: 25608af66ac2fcafb85d1f9924a0265bdf093c67 [file] [log] [blame]
Éric Araujoa0e92a82011-07-26 18:01:08 +02001#!/usr/bin/env python3
Benjamin Petersonded31c42009-03-30 15:04:16 +00002
3# Make a reST file compliant to our pre-commit hook.
4# Currently just remove trailing whitespace.
5
Georg Brandla9afb682010-10-21 12:49:28 +00006import sys
Georg Brandl17b9e272009-03-31 22:46:50 +00007
Georg Brandla9afb682010-10-21 12:49:28 +00008import patchcheck
Benjamin Petersonded31c42009-03-30 15:04:16 +00009
10def main(argv=sys.argv):
Georg Brandla9afb682010-10-21 12:49:28 +000011 patchcheck.normalize_docs_whitespace(argv[1:])
Benjamin Petersonded31c42009-03-30 15:04:16 +000012
13if __name__ == '__main__':
14 sys.exit(main())