if FilePath in cls.MetaFiles:\r
return cls.MetaFiles[FilePath]\r
else:\r
- ParserObject = super().__new__(cls)\r
+ ParserObject = super(InfSectionParser, cls).__new__(cls)\r
cls.MetaFiles[FilePath] = ParserObject\r
return ParserObject\r
\r
self.InfBuildOptionSection = InfBuildOptionsObject()\r
self.InfLibraryClassSection = InfLibraryClassObject()\r
self.InfPackageSection = InfPackageObject()\r
- self.InfPcdSection = InfPcdObject(list(self.MetaFiles.keys())[0])\r
+ self.InfPcdSection = InfPcdObject(self.MetaFiles.keys()[0])\r
self.InfSourcesSection = InfSourcesObject()\r
self.InfUserExtensionSection = InfUserExtensionObject()\r
self.InfProtocolSection = InfProtocolObject()\r
Arch = Match.groups(1)[0].upper()\r
ArchList.append(Arch)\r
CommentSoFar = ''\r
- for Index in range(1, len(List)):\r
+ for Index in xrange(1, len(List)):\r
Result = ParseComment(List[Index], DT.ALL_USAGE_TOKENS, TokenDict, [], False)\r
Usage = Result[0]\r
Type = Result[1]\r