changeset: 95865:0079465a9425 branch: 3.4 parent: 95859:f9027b10b3c4 user: Serhiy Storchaka date: Sun May 03 15:35:14 2015 +0300 files: Misc/NEWS Tools/scripts/h2py.py description: Issue #23330: h2py now supports arbitrary filenames in #include. diff -r f9027b10b3c4 -r 0079465a9425 Misc/NEWS --- a/Misc/NEWS Sat May 02 22:36:26 2015 -0400 +++ b/Misc/NEWS Sun May 03 15:35:14 2015 +0300 @@ -254,8 +254,11 @@ 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 -r f9027b10b3c4 -r 0079465a9425 Tools/scripts/h2py.py --- a/Tools/scripts/h2py.py Sat May 02 22:36:26 2015 -0400 +++ b/Tools/scripts/h2py.py Sun May 03 15:35:14 2015 +0300 @@ -29,7 +29,7 @@ '^[\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('//.*')