]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Ecc/MetaDataParser.py
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / MetaDataParser.py
index d0a94153d42106c1261e19e6f6cde18e45c52798..0fd9b6c4e330e8571a87eda620ea1c15014a4333 100644 (file)
@@ -2,13 +2,7 @@
 # This file is used to define common parser functions for meta-data\r
 #\r
 # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 \r
 from __future__ import absolute_import\r
@@ -18,7 +12,7 @@ from Ecc.EccToolError import *
 from Common.MultipleWorkspace import MultipleWorkspace as mws\r
 from Ecc import EccGlobalData\r
 import re\r
-## Get the inlcude path list for a source file\r
+## Get the include path list for a source file\r
 #\r
 # 1. Find the source file belongs to which inf file\r
 # 2. Find the inf's package\r
@@ -113,7 +107,7 @@ def ParseHeaderCommentSection(CommentList, FileName = None):
     #\r
     Last = 0\r
     HeaderCommentStage = HEADER_COMMENT_NOT_STARTED\r
-    for Index in xrange(len(CommentList)-1, 0, -1):\r
+    for Index in range(len(CommentList) - 1, 0, -1):\r
         Line = CommentList[Index][0]\r
         if _IsCopyrightLine(Line):\r
             Last = Index\r