diff options
author | Georg Brandl <georg@python.org> | 2014-10-19 09:55:15 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-19 09:55:15 (GMT) |
commit | 6e868b7bef5a984f1be472186948ce772ab2edfa (patch) | |
tree | 3b84ed90dc3ed6f8196f8261cb720429459ffe8a /Tools/scripts | |
parent | 61358f46229d31ed8d14f9b7995f572be13172db (diff) | |
parent | 24f0717b822b5fbf0460e0274bba3499570957d7 (diff) | |
download | cpython-6e868b7bef5a984f1be472186948ce772ab2edfa.zip cpython-6e868b7bef5a984f1be472186948ce772ab2edfa.tar.gz cpython-6e868b7bef5a984f1be472186948ce772ab2edfa.tar.bz2 |
merge with 3.4
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/patchcheck.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/scripts/patchcheck.py b/Tools/scripts/patchcheck.py index 6f9821b..1b51520 100755 --- a/Tools/scripts/patchcheck.py +++ b/Tools/scripts/patchcheck.py @@ -152,7 +152,8 @@ def main(): file_paths = changed_files() python_files = [fn for fn in file_paths if fn.endswith('.py')] c_files = [fn for fn in file_paths if fn.endswith(('.c', '.h'))] - doc_files = [fn for fn in file_paths if fn.startswith('Doc')] + doc_files = [fn for fn in file_paths if fn.startswith('Doc') and + fn.endswith(('.rst', '.inc'))] misc_files = {os.path.join('Misc', 'ACKS'), os.path.join('Misc', 'NEWS')}\ & set(file_paths) # PEP 8 whitespace rules enforcement. |