Fix SyntaxWarning in regular expression on Python 3.8
Signed-off-by: Mikhail Terekhov <termim@gmail.com>
---
BaseTools/Source/Python/build/build.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index 7271570d29..52e535b4e4 100644
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -1228,7 +1228,7 @@ class Build():
# run
if Target == 'run':
RunDir = os.path.normpath(os.path.join(AutoGenObject.BuildDir, GlobalData.gGlobalDefines['ARCH']))
- Command = '.\SecMain'
+ Command = '.\\SecMain'
os.chdir(RunDir)
LaunchCommand(Command, RunDir)
return True
@@ -1360,7 +1360,7 @@ class Build():
# run
if Target == 'run':
RunDir = os.path.normpath(os.path.join(AutoGenObject.BuildDir, GlobalData.gGlobalDefines['ARCH']))
- Command = '.\SecMain'
+ Command = '.\\SecMain'
os.chdir(RunDir)
LaunchCommand(Command, RunDir)
return True
@@ -1482,7 +1482,7 @@ class Build():
if self.Fdf:
# First get the XIP base address for FV map file.
GuidPattern = re.compile("[-a-fA-F0-9]+")
- GuidName = re.compile("\(GUID=[-a-fA-F0-9]+")
+ GuidName = re.compile("[(]GUID=[-a-fA-F0-9]+")
for FvName in Wa.FdfProfile.FvDict:
FvMapBuffer = os.path.join(Wa.FvDir, FvName + '.Fv.map')
if not os.path.exists(FvMapBuffer):
--
2.20.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#40169): https://edk2.groups.io/g/devel/message/40169
Mute This Topic: https://groups.io/mt/31540277/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-