[Python-checkins] cpython (2.7): Closes #22663: patchcheck: only modify text files under Doc/

georg.brandl python-checkins at python.org
Sun Oct 19 11:56:00 CEST 2014


https://hg.python.org/cpython/rev/4d53b34dd493
changeset:   93136:4d53b34dd493
branch:      2.7
parent:      93133:4953a4fadb03
user:        Georg Brandl <georg at python.org>
date:        Sun Oct 19 11:54:08 2014 +0200
summary:
  Closes #22663: patchcheck: only modify text files under Doc/

files:
  Tools/scripts/patchcheck.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Tools/scripts/patchcheck.py b/Tools/scripts/patchcheck.py
--- a/Tools/scripts/patchcheck.py
+++ b/Tools/scripts/patchcheck.py
@@ -157,7 +157,8 @@
     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.

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list