summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2019-07-13 01:29:28 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-07-15 09:09:25 +0800
commiteebc135ffb210c6da7133145ba9e5423cafc13d4 (patch)
treeb3362cab4071450876e243db83d3d1509d56c576
parent70565e64227dfa254d8a0703dd60dc74bd8b5e6e (diff)
downloadedk2-eebc135ffb210c6da7133145ba9e5423cafc13d4.tar.gz
edk2-eebc135ffb210c6da7133145ba9e5423cafc13d4.tar.bz2
edk2-eebc135ffb210c6da7133145ba9e5423cafc13d4.zip
BaseTools: Fix python3.8 SyntaxWarning
Building with python3.8 shows a warning like: SyntaxWarning: invalid escape sequence \( GuidName = re.compile("\(GUID=[-a-fA-F0-9]+") It seems harmless, but it's easy enough to fix: mark the string as raw with the 'r' prefix like is used elsewhere in the file Signed-off-by: Cole Robinson <crobinso@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
-rw-r--r--BaseTools/Source/Python/build/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index 8c3315619a..d6006b651f 100644
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -1499,7 +1499,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(r"\(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):