## @file\r
# This file contained the parser for [Guids], [Ppis], [Protocols] sections in INF file \r
#\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2017, 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
FileName,\r
DT.MODEL_EFI_GUID,\r
self.FileLocalMacros)\r
- if Name != None:\r
+ if Name is not None:\r
SectionMacros[Name] = Value\r
CommentsList = []\r
ValueList = []\r
FileName,\r
DT.MODEL_EFI_PPI,\r
self.FileLocalMacros)\r
- if Name != None:\r
+ if Name is not None:\r
SectionMacros[Name] = Value\r
ValueList = []\r
CommentsList = []\r
for Line in SectionString:\r
LineContent = Line[0]\r
\r
- if LineContent.strip() == '':\r
- continue\r
+# Comment the code to support user extension without any statement just the section header in []\r
+# if LineContent.strip() == '':\r
+# continue\r
\r
UserExtensionContent += LineContent + DT.END_OF_LINE\r
continue\r
FileName,\r
DT.MODEL_EFI_PROTOCOL,\r
self.FileLocalMacros)\r
- if Name != None:\r
+ if Name is not None:\r
SectionMacros[Name] = Value\r
ValueList = []\r
CommentsList = []\r