public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: termim@gmail.com
To: devel@edk2.groups.io
Cc: Mikhail Terekhov <termim@gmail.com>
Subject: [PATCH] Python 3.8 compatibility
Date: Wed,  8 May 2019 00:17:54 -0400	[thread overview]
Message-ID: <20190508041754.3611-1-termim@gmail.com> (raw)

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


                 reply	other threads:[~2019-05-08  4:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190508041754.3611-1-termim@gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox