build: fix python warnings "SyntaxWarning: invalid escape sequence '\w'" (#44650)
* fix: SyntaxWarning: invalid escape sequence '\w' * chore: remove some unused imports * fix: E711 warning 'Comparison to should be '
This commit is contained in:
parent
41b5d7e312
commit
8a67e77f03
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