From 5135cc48529a2de1801ad826fb5644dc508285e2 Mon Sep 17 00:00:00 2001 From: Yunhua Feng Date: Mon, 3 Sep 2018 15:40:46 +0800 Subject: BaseTools: replace the list iteritems by items replace the list iteritems by items in Python3. Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng Reviewed-by: Liming Gao --- BaseTools/Source/Python/Common/Misc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'BaseTools/Source/Python/Common/Misc.py') 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 -- cgit v1.2.3