]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Object/Parser/InfLibraryClassesObject.py
BaseTools: Remove equality operator with None
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Object / Parser / InfLibraryClassesObject.py
index a37692ee23380da26d71e890f1bb284c6412785f..e588c6ba66d8708f94af412b5caa9023920fd997 100644 (file)
@@ -2,7 +2,7 @@
 # This file is used to define class objects of INF file [LibraryClasses] section. \r
 # It will consumed by InfParser. \r
 #\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials are licensed and made available \r
 # under the terms and conditions of the BSD License which accompanies this \r
@@ -38,10 +38,10 @@ def GetArchModuleType(KeyList):
         #\r
         # Validate Arch\r
         #            \r
-        if (ArchItem == '' or ArchItem == None):\r
+        if (ArchItem == '' or ArchItem is None):\r
             ArchItem = 'COMMON'\r
 \r
-        if (ModuleItem == '' or ModuleItem == None):\r
+        if (ModuleItem == '' or ModuleItem is None):\r
             ModuleItem = 'COMMON'\r
 \r
         if ArchItem not in __SupArchList:\r
@@ -136,7 +136,7 @@ class InfLibraryClassObject():
                 LibItemObj.CurrentLine.SetLineNo(LibItem[2][1])\r
                 LibItemObj.CurrentLine.SetLineString(LibItem[2][0])\r
                 LibItem = LibItem[0]\r
-                if HelpStringObj != None:\r
+                if HelpStringObj is not None:\r
                     LibItemObj.SetHelpString(HelpStringObj)\r
                 if len(LibItem) >= 1:\r
                     if LibItem[0].strip() != '':\r
@@ -236,6 +236,7 @@ class InfLibraryClassObject():
                 #\r
                 LibItemObj.SetFileGuid(LibItem[0])\r
                 LibItemObj.SetVersion(LibItem[1])\r
+                LibItemObj.SetSupArchList(__SupArchList)\r
 \r
             if self.LibraryClasses.has_key((LibItemObj)):\r
                 LibraryList = self.LibraryClasses[LibItemObj]\r