if Len == 4 and LineDetails[2] != 'TRANSPARENT':\r
EdkLogger.error("Image Definition File Parser", PARSER_ERROR, 'Please use the keyword "TRANSPARENT" to describe the transparency setting in Line %s of File %s.' % (LineNo, File.Path))\r
MatchString = gIdentifierPattern.match(LineDetails[1])\r
- if MatchString is None or MatchString.end(0) != len(LineDetails[1]):\r
+ if MatchString is None:\r
EdkLogger.error('Image Definition File Parser', FORMAT_INVALID, 'The Image token name %s defined in Idf file %s contains the invalid character.' % (LineDetails[1], File.Path))\r
if LineDetails[1] not in self.ImageIDList:\r
self.ImageIDList.append(LineDetails[1])\r
# Check the string name\r
if Name != '':\r
MatchString = gIdentifierPattern.match(Name)\r
- if MatchString is None or MatchString.end(0) != len(Name):\r
+ if MatchString is None:\r
EdkLogger.error('Unicode File Parser', FORMAT_INVALID, 'The string token name %s defined in UNI file %s contains the invalid character.' % (Name, self.File))\r
LanguageList = Item.split(u'#language ')\r
for IndexI in range(len(LanguageList)):\r
# Check the string name\r
if not self.IsCompatibleMode and Name != '':\r
MatchString = gIdentifierPattern.match(Name)\r
- if MatchString is None or MatchString.end(0) != len(Name):\r
+ if MatchString is None:\r
EdkLogger.error('Unicode File Parser', FORMAT_INVALID, 'The string token name %s defined in UNI file %s contains the invalid character.' % (Name, self.File))\r
self.AddStringToList(Name, Language, Value)\r
continue\r