]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/GenFds.py
BaseTools: dont make iterator into list if not needed
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / GenFds.py
index e17affc0960e475af037e1d364dfc59176332c5e..f0b51e25dfa2f29788f78407aeabce98fa711cd9 100644 (file)
@@ -761,7 +761,7 @@ class GenFds :
                                     length = F.tell()\r
                                     F.seek(4)\r
                                     TmpStr = unpack('%dh' % ((length - 4) / 2), F.read())\r
-                                    Name = ''.join([chr(c) for c in TmpStr[:-1]])\r
+                                    Name = ''.join(chr(c) for c in TmpStr[:-1])\r
                         else:\r
                             FileList = []\r
                             if 'fv.sec.txt' in MatchDict:\r