|
From: <js...@us...> - 2011-12-16 05:48:52
|
Revision: 2473
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2473&view=rev
Author: jsu1
Date: 2011-12-16 05:48:46 +0000 (Fri, 16 Dec 2011)
Log Message:
-----------
Update UPT to fix the issue that reported by pylint
Reviewed-by: hchen30
Signed-off-by: jsu1
Modified Paths:
--------------
trunk/BaseTools/Source/Python/UPT/BuildVersion.py
trunk/BaseTools/Source/Python/UPT/Library/String.py
Modified: trunk/BaseTools/Source/Python/UPT/BuildVersion.py
===================================================================
--- trunk/BaseTools/Source/Python/UPT/BuildVersion.py 2011-12-16 03:16:40 UTC (rev 2472)
+++ trunk/BaseTools/Source/Python/UPT/BuildVersion.py 2011-12-16 05:48:46 UTC (rev 2473)
@@ -1,3 +1,20 @@
-#This file is for build version number auto generation
+## @file
#
+# This file is for build version number auto generation
+#
+# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
+#
+# 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
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+
+'''
+Build version information
+'''
+
gBUILD_VERSION = ""
Modified: trunk/BaseTools/Source/Python/UPT/Library/String.py
===================================================================
--- trunk/BaseTools/Source/Python/UPT/Library/String.py 2011-12-16 03:16:40 UTC (rev 2472)
+++ trunk/BaseTools/Source/Python/UPT/Library/String.py 2011-12-16 05:48:46 UTC (rev 2473)
@@ -643,35 +643,6 @@
def ConvertToSqlString2(String):
return String.replace("'", "''")
-## RemoveBlockComment
-#
-# Remove comment block
-#
-# @param Lines: Block Comment Lines
-#
-def RemoveBlockComment(Lines):
- IsFindBlockComment = False
- ReservedLine = ''
- NewLines = []
-
- for Line in Lines:
- Line = Line.strip()
- #
- # Remove comment block
- #
- if Line.find(DataType.TAB_COMMENT_EDK1_START) > -1:
- ReservedLine = GetSplitList(Line, DataType.TAB_COMMENT_EDK1_START, 1)[0]
- IsFindBlockComment = True
- if Line.find(DataType.TAB_COMMENT_EDK1_END) > -1:
- Line = ReservedLine + GetSplitList(Line, DataType.TAB_COMMENT_EDK1_END, 1)[1]
- ReservedLine = ''
- IsFindBlockComment = False
- if IsFindBlockComment:
- NewLines.append('')
- continue
- NewLines.append(Line)
- return NewLines
-
## GetStringOfList
#
# Get String of a List
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|