summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/GenFds
diff options
context:
space:
mode:
authorCarsey, Jaben <jaben.carsey@intel.com>2018-04-28 06:32:54 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-05-04 13:08:09 +0800
commit8252e6bf2ddfa210992c3590008029933592ad16 (patch)
tree34cc618710565f98d401c2f60b3fa7a6ff9ae2d1 /BaseTools/Source/Python/GenFds
parent4d601fc6b17d69cf20c23cfbaf063bb337b4876d (diff)
downloadedk2-8252e6bf2ddfa210992c3590008029933592ad16.tar.gz
edk2-8252e6bf2ddfa210992c3590008029933592ad16.tar.bz2
edk2-8252e6bf2ddfa210992c3590008029933592ad16.zip
BaseTools: dont make iterator into list if not needed
functions (like join) can use the iterator just as easily. Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds')
-rw-r--r--BaseTools/Source/Python/GenFds/GenFds.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/GenFds.py b/BaseTools/Source/Python/GenFds/GenFds.py
index e17affc096..f0b51e25df 100644
--- a/BaseTools/Source/Python/GenFds/GenFds.py
+++ b/BaseTools/Source/Python/GenFds/GenFds.py
@@ -761,7 +761,7 @@ class GenFds :
length = F.tell()
F.seek(4)
TmpStr = unpack('%dh' % ((length - 4) / 2), F.read())
- Name = ''.join([chr(c) for c in TmpStr[:-1]])
+ Name = ''.join(chr(c) for c in TmpStr[:-1])
else:
FileList = []
if 'fv.sec.txt' in MatchDict: