# 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
#\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
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
#\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