From: Georg Brandl Date: Sun, 19 Oct 2014 09:54:08 +0000 (+0200) Subject: Closes #22663: patchcheck: only modify text files under Doc/ X-Git-Tag: v2.7.9rc1~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a1184c02462cf4be3371a37f9a9e7c29257bdeb;p=thirdparty%2FPython%2Fcpython.git Closes #22663: patchcheck: only modify text files under Doc/ --- diff --git a/Tools/scripts/patchcheck.py b/Tools/scripts/patchcheck.py index 418dd269daf8..eda21b9018c0 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.