summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/list-packageconfig-flags.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-18 21:39:44 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:24:01 +0100
commit7eab022d4b484aec40998f95835ba46c5da168cf (patch)
treee88a3bf01eada7d44e41bfadee5721ce6ec198e0 /scripts/contrib/list-packageconfig-flags.py
parent63404baadbfd1225bbb955f8c8f817073aef65d8 (diff)
downloadpoky-7eab022d4b484aec40998f95835ba46c5da168cf.tar.gz
scripts: Fix deprecated dict methods for python3
Replaced iteritems -> items, itervalues -> values, iterkeys -> keys or 'in' (From OE-Core rev: 25d4d8274bac696a484f83d7f3ada778cf95f4d0) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib/list-packageconfig-flags.py')
-rwxr-xr-xscripts/contrib/list-packageconfig-flags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/contrib/list-packageconfig-flags.py b/scripts/contrib/list-packageconfig-flags.py
index 5dfe796c0a..22d0c4904d 100755
--- a/scripts/contrib/list-packageconfig-flags.py
+++ b/scripts/contrib/list-packageconfig-flags.py
@@ -86,7 +86,7 @@ def collect_flags(pkg_dict):
86 ''' Collect available PACKAGECONFIG flags and all affected pkgs ''' 86 ''' Collect available PACKAGECONFIG flags and all affected pkgs '''
87 # flag_dict = {'flag': ['pkg1', 'pkg2',...]} 87 # flag_dict = {'flag': ['pkg1', 'pkg2',...]}
88 flag_dict = {} 88 flag_dict = {}
89 for pkgname, flaglist in pkg_dict.iteritems(): 89 for pkgname, flaglist in pkg_dict.items():
90 for flag in flaglist: 90 for flag in flaglist:
91 if flag in flag_dict: 91 if flag in flag_dict:
92 flag_dict[flag].append(pkgname) 92 flag_dict[flag].append(pkgname)
@@ -132,7 +132,7 @@ def display_all(data_dict):
132 packageconfig = 'None' 132 packageconfig = 'None'
133 print('PACKAGECONFIG %s' % packageconfig) 133 print('PACKAGECONFIG %s' % packageconfig)
134 134
135 for flag,flag_val in data_dict[fn].getVarFlags("PACKAGECONFIG").iteritems(): 135 for flag,flag_val in data_dict[fn].getVarFlags("PACKAGECONFIG").items():
136 if flag == "doc": 136 if flag == "doc":
137 continue 137 continue
138 print('PACKAGECONFIG[%s] %s' % (flag, flag_val)) 138 print('PACKAGECONFIG[%s] %s' % (flag, flag_val))