diff options
author | Carsey, Jaben <jaben.carsey@intel.com> | 2018-04-12 16:53:53 -0700 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-04-23 11:11:19 +0800 |
commit | b491aa95ab9e2e831f658bb74bf9ed67bff082ac (patch) | |
tree | 178486ff9788ba9723ca80f1ac2021dd49a88c19 /BaseTools/Source/Python/GenFds | |
parent | 4e50eba1b6d606fdda19558e7142366403115028 (diff) | |
download | edk2-b491aa95ab9e2e831f658bb74bf9ed67bff082ac.tar.gz edk2-b491aa95ab9e2e831f658bb74bf9ed67bff082ac.tar.bz2 edk2-b491aa95ab9e2e831f658bb74bf9ed67bff082ac.zip |
BaseTools: remove un-needed use of .keys() on dictionaries
sometimes just delete it.
sometimes the loop needed .values() instead
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/Fv.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/GenFds/Fv.py b/BaseTools/Source/Python/GenFds/Fv.py index 5228e15526..ef5896d76b 100644 --- a/BaseTools/Source/Python/GenFds/Fv.py +++ b/BaseTools/Source/Python/GenFds/Fv.py @@ -439,7 +439,7 @@ class FV (FvClassObject): # Add [Files]
#
self.FvInfFile.writelines("[files]" + T_CHAR_LF)
- if VtfDict is not None and self.UiFvName in VtfDict:
+ if VtfDict and self.UiFvName in VtfDict:
self.FvInfFile.writelines("EFI_FILE_NAME = " + \
VtfDict[self.UiFvName] + \
T_CHAR_LF)
|