]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/build/build.py
BaseTools: Fix python3.8 SyntaxWarning
authorCole Robinson <crobinso@redhat.com>
Fri, 12 Jul 2019 17:29:28 +0000 (01:29 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Mon, 15 Jul 2019 01:09:25 +0000 (09:09 +0800)
commiteebc135ffb210c6da7133145ba9e5423cafc13d4
treeb3362cab4071450876e243db83d3d1509d56c576
parent70565e64227dfa254d8a0703dd60dc74bd8b5e6e
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>
BaseTools/Source/Python/build/build.py