]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Common/StringUtils.py
BaseTools: Migrate to the new octal literal
[mirror_edk2.git] / BaseTools / Source / Python / Common / StringUtils.py
index 34361ecdd58c0bfacabda0e9a09797f060df1368..25dd4b264c2fc0f0cfb16ac90e58b7fda5f28f69 100644 (file)
@@ -447,7 +447,7 @@ def GetMultipleValuesOfKeyFromLines(Lines, Key, KeyValues, CommentCharacter):
     for Line in LineList:\r
         Line = CleanString(Line, CommentCharacter)\r
         if Line != '' and Line[0] != CommentCharacter:\r
-            KeyValues += [Line]\r
+            KeyValues.append(Line)\r
 \r
     return True\r
 \r
@@ -750,7 +750,7 @@ def SplitString(String):
 # @param StringList:  A list for strings to be converted\r
 #\r
 def ConvertToSqlString(StringList):\r
-    return map(lambda s: s.replace("'", "''") , StringList)\r
+    return map(lambda s: s.replace("'", "''"), StringList)\r
 \r
 ## Convert To Sql String\r
 #\r