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>
This commit is contained in:
Yunhua Feng
2018-09-03 15:40:46 +08:00
committed by Yonghong Zhu
parent d3678942b4
commit 5135cc4852
4 changed files with 8 additions and 8 deletions

View File

@ -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