mirror of
https://github.com/python/cpython.git
synced 2024-11-26 11:24:40 +08:00
15 lines
279 B
Python
Executable File
15 lines
279 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
# Make a reST file compliant to our pre-commit hook.
|
|
# Currently just remove trailing whitespace.
|
|
|
|
import sys
|
|
|
|
import patchcheck
|
|
|
|
def main(argv=sys.argv):
|
|
patchcheck.normalize_docs_whitespace(argv[1:])
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|