From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: rosa-r11-plasma.localdomain, ip: 47.14.91.46, mailfrom: termim@rosa-r11-plasma.localdomain) Received: from Rosa-R11-plasma.localdomain (Rosa-R11-plasma.localdomain [47.14.91.46]) by groups.io with SMTP; Tue, 07 May 2019 21:17:45 -0700 Received: by Rosa-R11-plasma.localdomain (Postfix, from userid 500) id 3824C12017C; Wed, 8 May 2019 00:17:57 -0400 (EDT) From: termim@gmail.com To: devel@edk2.groups.io Cc: Mikhail Terekhov Subject: [PATCH] Python 3.8 compatibility Date: Wed, 8 May 2019 00:17:54 -0400 Message-Id: <20190508041754.3611-1-termim@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Fix SyntaxWarning in regular expression on Python 3.8 Signed-off-by: Mikhail Terekhov --- 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/Py= thon/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 =3D=3D 'run': RunDir =3D os.path.normpath(os.path.join(AutoGenObject.Build= Dir, GlobalData.gGlobalDefines['ARCH'])) - Command =3D '.\SecMain' + Command =3D '.\\SecMain' os.chdir(RunDir) LaunchCommand(Command, RunDir) return True @@ -1360,7 +1360,7 @@ class Build(): # run if Target =3D=3D 'run': RunDir =3D os.path.normpath(os.path.join(AutoGenObject.Build= Dir, GlobalData.gGlobalDefines['ARCH'])) - Command =3D '.\SecMain' + Command =3D '.\\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 =3D re.compile("[-a-fA-F0-9]+") - GuidName =3D re.compile("\(GUID=3D[-a-fA-F0-9]+") + GuidName =3D re.compile("[(]GUID=3D[-a-fA-F0-9]+") for FvName in Wa.FdfProfile.FvDict: FvMapBuffer =3D os.path.join(Wa.FvDir, FvName + '.Fv.map= ') if not os.path.exists(FvMapBuffer): --=20 2.20.1