2009-03-28 16:33:33 -03:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
# Make a reST file compliant to our pre-commit hook.
|
|
|
|
# Currently just remove trailing whitespace.
|
|
|
|
|
2010-11-26 04:04:57 -04:00
|
|
|
import sys
|
2009-03-28 16:33:33 -03:00
|
|
|
|
2010-11-26 04:04:57 -04:00
|
|
|
import patchcheck
|
2009-03-28 16:33:33 -03:00
|
|
|
|
|
|
|
def main(argv=sys.argv):
|
2010-11-26 04:04:57 -04:00
|
|
|
patchcheck.normalize_docs_whitespace(argv[1:])
|
2009-03-28 16:33:33 -03:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
sys.exit(main())
|