From f7496d717357b9af78414d19679b073403812340 Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Thu, 5 Jul 2018 17:40:04 +0800 Subject: BaseTools: Clean up source files 1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao Cc: Yonghong Zhu Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/Table/TableFile.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'BaseTools/Source/Python/Table/TableFile.py') diff --git a/BaseTools/Source/Python/Table/TableFile.py b/BaseTools/Source/Python/Table/TableFile.py index ac762ea7fc..34a0b47418 100644 --- a/BaseTools/Source/Python/Table/TableFile.py +++ b/BaseTools/Source/Python/Table/TableFile.py @@ -1,7 +1,7 @@ ## @file # This file is used to create/update/query/erase table for files # -# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.
+# Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at @@ -23,14 +23,14 @@ from CommonDataClass.DataClass import FileClass ## TableFile # # This class defined a table used for file -# +# # @param object: Inherited from object class # class TableFile(Table): def __init__(self, Cursor): Table.__init__(self, Cursor) self.Table = 'File' - + ## Create table # # Create table File @@ -72,15 +72,15 @@ class TableFile(Table): SqlCommand = """insert into %s values(%s, '%s', '%s', '%s', '%s', %s, '%s')""" \ % (self.Table, self.ID, Name, ExtName, Path, FullPath, Model, TimeStamp) Table.Insert(self, SqlCommand) - + return self.ID ## InsertFile # # Insert one file to table # # @param FileFullPath: The full path of the file - # @param Model: The model of the file - # + # @param Model: The model of the file + # # @retval FileID: The ID after record is inserted # def InsertFile(self, FileFullPath, Model): @@ -89,7 +89,7 @@ class TableFile(Table): TimeStamp = os.stat(FileFullPath)[8] File = FileClass(-1, Name, Ext, Filepath, FileFullPath, Model, '', [], [], []) return self.Insert(File.Name, File.ExtName, File.Path, File.FullPath, File.Model, TimeStamp) - + ## Get ID of a given file # # @param FilePath Path of file -- cgit v1.2.3