]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Table/TableEotReport.py
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / Python / Table / TableEotReport.py
index 2d98129e4f5cc81d9d7eacfbb61e8a38f8d72c1e..72bc11f6dbc2944924a924cfbcf944272ec405d8 100644 (file)
@@ -1,30 +1,25 @@
 ## @file\r
 # This file is used to create/update/query/erase table for ECC reports\r
 #\r
-# Copyright (c) 2008, Intel Corporation\r
-# All rights reserved. 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
+# Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 \r
 ##\r
 # Import Modules\r
 #\r
+from __future__ import absolute_import\r
 import Common.EdkLogger as EdkLogger\r
-import os, time\r
-from Table import Table\r
-from Common.String import ConvertToSqlString2\r
+import Common.LongFilePathOs as os, time\r
+from Table.Table import Table\r
+from Common.StringUtils import ConvertToSqlString2\r
 import Eot.EotToolError as EotToolError\r
 import Eot.EotGlobalData as EotGlobalData\r
 \r
 ## TableReport\r
 #\r
 # This class defined a table used for data model\r
-# \r
+#\r
 # @param object:       Inherited from object class\r
 #\r
 #\r
@@ -32,7 +27,7 @@ class TableEotReport(Table):
     def __init__(self, Cursor):\r
         Table.__init__(self, Cursor)\r
         self.Table = 'Report'\r
-    \r
+\r
     ## Create table\r
     #\r
     # Create table report\r
@@ -68,9 +63,9 @@ class TableEotReport(Table):
                      % (self.Table, self.ID, ModuleID, ModuleName, ModuleGuid, SourceFileID, SourceFileFullPath, \\r
                         ItemName, ItemType, ItemMode, GuidName, GuidMacro, GuidValue, BelongsToFunction, Enabled)\r
         Table.Insert(self, SqlCommand)\r
-        \r
+\r
     def GetMaxID(self):\r
         SqlCommand = """select max(ID) from %s""" % self.Table\r
         self.Cur.execute(SqlCommand)\r
         for Item in self.Cur:\r
-            return Item[0]
\ No newline at end of file
+            return Item[0]\r