Re: [PATCH 2/2] build/mkheader: Fix Syntax/DeprecationWarnings

2024-07-04 Thread Anthony PERARD
On Wed, Jul 03, 2024 at 11:55:25PM +0100, Andrew Cooper wrote: > With Python 3.11, the following is emitted during a build: > > tools/include/xen-foreign/mkheader.py:162: DeprecationWarning: invalid > escape sequence '\s' > regex = "#define\s+%s\\b" % define; > tools/include/xen-foreign/m

[PATCH 2/2] build/mkheader: Fix Syntax/DeprecationWarnings

2024-07-03 Thread Andrew Cooper
With Python 3.11, the following is emitted during a build: tools/include/xen-foreign/mkheader.py:162: DeprecationWarning: invalid escape sequence '\s' regex = "#define\s+%s\\b" % define; tools/include/xen-foreign/mkheader.py:177: DeprecationWarning: invalid escape sequence '\*' input