diff options
author | Cole Robinson <crobinso@redhat.com> | 2019-07-13 01:29:28 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-07-15 09:09:25 +0800 |
commit | eebc135ffb210c6da7133145ba9e5423cafc13d4 (patch) | |
tree | b3362cab4071450876e243db83d3d1509d56c576 /BaseTools/Source/Python/build | |
parent | 70565e64227dfa254d8a0703dd60dc74bd8b5e6e (diff) | |
download | edk2-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>
Diffstat (limited to 'BaseTools/Source/Python/build')
-rw-r--r-- | BaseTools/Source/Python/build/build.py | 2 |
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):
|