build: fix python warnings "SyntaxWarning: invalid escape sequence '\w'" (#44658)
* fix: SyntaxWarning: invalid escape sequence '\w' Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove some unused imports Co-authored-by: Charles Kerr <charles@charleskerr.com> * fix: E711 warning 'Comparison to should be ' Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
5b3a1a7195
commit
eb712a65af
3 changed files with 4 additions and 5 deletions
|
@ -2,7 +2,7 @@ import os
|
|||
import re
|
||||
import sys
|
||||
|
||||
DEFINE_EXTRACT_REGEX = re.compile('^ *# *define (\w*)', re.MULTILINE)
|
||||
DEFINE_EXTRACT_REGEX = re.compile(r'^ *# *define (\w*)', re.MULTILINE)
|
||||
|
||||
def main(out_dir, headers):
|
||||
defines = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue