mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Match "#line" lines with leading whitespace
This commit is contained in:
2
build.py
2
build.py
@@ -1336,7 +1336,7 @@ def cmd_sip(options, args):
|
||||
else:
|
||||
# ...or totally remove them by replacing those lines with ''
|
||||
import re
|
||||
srcTxt = re.sub(r'^#line.*\n', '', srcTxt, flags=re.MULTILINE)
|
||||
srcTxt = re.sub(r'^\s*#line.*\n', '', srcTxt, flags=re.MULTILINE)
|
||||
className = classesNeedingClassInfo.get(os.path.basename(src))
|
||||
if className:
|
||||
srcTxt = injectClassInfo(className, srcTxt)
|
||||
|
||||
Reference in New Issue
Block a user