summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-19 09:55:15 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-19 09:55:15 (GMT)
commit6e868b7bef5a984f1be472186948ce772ab2edfa (patch)
tree3b84ed90dc3ed6f8196f8261cb720429459ffe8a /Tools/scripts
parent61358f46229d31ed8d14f9b7995f572be13172db (diff)
parent24f0717b822b5fbf0460e0274bba3499570957d7 (diff)
downloadcpython-6e868b7bef5a984f1be472186948ce772ab2edfa.zip
cpython-6e868b7bef5a984f1be472186948ce772ab2edfa.tar.gz
cpython-6e868b7bef5a984f1be472186948ce772ab2edfa.tar.bz2
merge with 3.4
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/patchcheck.py3
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.