summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/MetaDataTable.py
diff options
context:
space:
mode:
authorYunhua Feng <yunhuax.feng@intel.com>2018-07-27 13:14:59 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-10-13 09:54:52 +0800
commit00fcce91534e02f0e350c73b0c5472543f0de271 (patch)
tree5caed25154ef682550e64327eac60f34b60f42e1 /BaseTools/Source/Python/Workspace/MetaDataTable.py
parent86e6cf98a8493574878286522078050ac4dd505d (diff)
downloadedk2-00fcce91534e02f0e350c73b0c5472543f0de271.tar.gz
edk2-00fcce91534e02f0e350c73b0c5472543f0de271.tar.bz2
edk2-00fcce91534e02f0e350c73b0c5472543f0de271.zip
BaseTools: do the list and iterator translation
Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/MetaDataTable.py')
-rw-r--r--BaseTools/Source/Python/Workspace/MetaDataTable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/MetaDataTable.py b/BaseTools/Source/Python/Workspace/MetaDataTable.py
index bd751eadfb..3300954cf5 100644
--- a/BaseTools/Source/Python/Workspace/MetaDataTable.py
+++ b/BaseTools/Source/Python/Workspace/MetaDataTable.py
@@ -22,7 +22,7 @@ from CommonDataClass.DataClass import FileClass
## Convert to SQL required string format
def ConvertToSqlString(StringList):
- return map(lambda s: "'" + s.replace("'", "''") + "'", StringList)
+ return list(map(lambda s: "'" + s.replace("'", "''") + "'", StringList))
## TableFile
#