blob: ceb84bfd3cb84792c31b807a9d80bb8fd9f1fda4 [file] [log] [blame]
Georg Brandl392775f2009-03-28 19:33:33 +00001#!/usr/bin/env python
2
3# Make a reST file compliant to our pre-commit hook.
4# Currently just remove trailing whitespace.
5
Georg Brandlef212e02010-11-26 08:04:57 +00006import sys
Georg Brandl392775f2009-03-28 19:33:33 +00007
Georg Brandlef212e02010-11-26 08:04:57 +00008import patchcheck
Georg Brandl392775f2009-03-28 19:33:33 +00009
10def main(argv=sys.argv):
Georg Brandlef212e02010-11-26 08:04:57 +000011 patchcheck.normalize_docs_whitespace(argv[1:])
Georg Brandl392775f2009-03-28 19:33:33 +000012
13if __name__ == '__main__':
14 sys.exit(main())