BaseTools: use new shared GUID regular expressions

remove local variables that are GUID matching and replace with shared
expression.

Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
Carsey, Jaben
2018-03-17 07:27:41 +08:00
committed by Yonghong Zhu
parent 709c9fd56b
commit b1a9e404d4
4 changed files with 9 additions and 11 deletions

View File

@ -22,6 +22,7 @@ import CommonDataClass.FdfClass
from Common.LongFilePathSupport import OpenLongFilePath as open
from Common.MultipleWorkspace import MultipleWorkspace as mws
from Common.RangeExpression import RangeExpression
from Common.GlobalData import *
##define T_CHAR_SPACE ' '
##define T_CHAR_NULL '\0'
@ -934,7 +935,7 @@ class FdfParser(object):
if not self.__GetNextToken():
return False
if RangeExpression.RegGuidPattern.match(self.__Token) != None:
if gGuidPattern.match(self.__Token) != None:
return True
else:
self.__UndoToken()