* [PATCH] Python 3.8 compatibility
@ 2019-05-08 4:17 termim
0 siblings, 0 replies; only message in thread
From: termim @ 2019-05-08 4:17 UTC (permalink / raw)
To: devel; +Cc: Mikhail Terekhov
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-05-08 4:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-08 4:17 [PATCH] Python 3.8 compatibility termim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox