diff options
author | Yunhua Feng <yunhuax.feng@intel.com> | 2018-09-03 15:40:46 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-10-13 09:50:43 +0800 |
commit | 5135cc48529a2de1801ad826fb5644dc508285e2 (patch) | |
tree | 5a3039f5f12d4684b8f444c11f12f7e1eb5b7c60 /BaseTools/Source/Python/Common | |
parent | d3678942b40a7c7755f60dae2b7f92583a03a24e (diff) | |
download | edk2-5135cc48529a2de1801ad826fb5644dc508285e2.tar.gz edk2-5135cc48529a2de1801ad826fb5644dc508285e2.tar.bz2 edk2-5135cc48529a2de1801ad826fb5644dc508285e2.zip |
BaseTools: replace the list iteritems by items
replace the list iteritems by items in Python3.
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/Common')
-rw-r--r-- | BaseTools/Source/Python/Common/Misc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Common/Misc.py b/BaseTools/Source/Python/Common/Misc.py index 40c0105a3c..b91f06b19e 100644 --- a/BaseTools/Source/Python/Common/Misc.py +++ b/BaseTools/Source/Python/Common/Misc.py @@ -1019,11 +1019,11 @@ class sdict(IterableUserDict): ## Keys interation support
def iterkeys(self):
- return iter(self.keys())
+ return self.keys()
## Values interation support
def itervalues(self):
- return iter(self.values())
+ return self.values()
## Return value related to a key, and remove the (key, value) from the dict
def pop(self, key, *dv):
@@ -1032,7 +1032,7 @@ class sdict(IterableUserDict): value = self[key]
self.__delitem__(key)
elif len(dv) != 0 :
- value = kv[0]
+ value = dv[0]
return value
## Return (key, value) pair, and remove the (key, value) from the dict
|