From 6a1184c02462cf4be3371a37f9a9e7c29257bdeb Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 19 Oct 2014 11:54:08 +0200 Subject: [PATCH] Closes #22663: patchcheck: only modify text files under Doc/ --- Tools/scripts/patchcheck.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/scripts/patchcheck.py b/Tools/scripts/patchcheck.py index 418dd269da..eda21b9018 100755 --- a/Tools/scripts/patchcheck.py +++ b/Tools/scripts/patchcheck.py @@ -157,7 +157,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. -- 2.50.1