]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Table/TableReport.py
BaseTools: Use absolute import in Table
[mirror_edk2.git] / BaseTools / Source / Python / Table / TableReport.py
index 4af0e98d86b4e01c8a7a313ecd261010f93cf5ec..c4a622953ece8e00be0c1e28ab8ab42efb6c6a63 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # This file is used to create/update/query/erase table for ECC reports\r
 #\r
-# Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>\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
 ##\r
 # Import Modules\r
 #\r
+from __future__ import absolute_import\r
 import Common.EdkLogger as EdkLogger\r
 import Common.LongFilePathOs as os, time\r
-from Table import Table\r
-from Common.String import ConvertToSqlString2\r
+from .Table import Table\r
+from Common.StringUtils import ConvertToSqlString2\r
 import EccToolError as EccToolError\r
 import EccGlobalData as EccGlobalData\r
 from Common.LongFilePathSupport import OpenLongFilePath as open\r
@@ -25,7 +26,7 @@ from Common.LongFilePathSupport import OpenLongFilePath as open
 ## TableReport\r
 #\r
 # This class defined a table used for data model\r
-# \r
+#\r
 # @param object:       Inherited from object class\r
 #\r
 #\r
@@ -33,7 +34,7 @@ class TableReport(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
@@ -78,7 +79,7 @@ class TableReport(Table):
 \r
     ## Query table\r
     #\r
-    # @retval:       A recordSet of all found records \r
+    # @retval:       A recordSet of all found records\r
     #\r
     def Query(self):\r
         SqlCommand = """select ID, ErrorID, OtherMsg, BelongsToTable, BelongsToItem, Corrected from %s\r