From: Serhiy Storchaka Date: Sun, 3 May 2015 12:35:14 +0000 (+0300) Subject: Issue #23330: h2py now supports arbitrary filenames in #include. X-Git-Tag: v3.5.0b1~255^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9c04db64fd0315a30c4360d7ad33b975d5fbfc1;p=thirdparty%2FPython%2Fcpython.git Issue #23330: h2py now supports arbitrary filenames in #include. --- diff --git a/Misc/NEWS b/Misc/NEWS index b0a87a797e57..b787c840625c 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -254,8 +254,11 @@ Documentation Tools/Demos ----------- +- Issue #23330: h2py now supports arbitrary filenames in #include. + - Issue #24031: make patchcheck now supports git checkouts, too. + What's New in Python 3.4.3? =========================== diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index 4f871d90107f..0967fc29d601 100755 --- a/Tools/scripts/h2py.py +++ b/Tools/scripts/h2py.py @@ -29,7 +29,7 @@ p_macro = re.compile( '^[\t ]*#[\t ]*define[\t ]+' '([a-zA-Z0-9_]+)\(([_a-zA-Z][_a-zA-Z0-9]*)\)[\t ]+') -p_include = re.compile('^[\t ]*#[\t ]*include[\t ]+<([a-zA-Z0-9_/\.]+)') +p_include = re.compile('^[\t ]*#[\t ]*include[\t ]+<([^>\n]+)>') p_comment = re.compile(r'/\*([^*]+|\*+[^/])*(\*+/)?') p_cpp_comment = re.compile('//.*')