summaryrefslogtreecommitdiffstats
path: root/scripts/pythondeps
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/pythondeps
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/pythondeps')
-rwxr-xr-xscripts/pythondeps2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pythondeps b/scripts/pythondeps
index ff92e747ed..f1e6452092 100755
--- a/scripts/pythondeps
+++ b/scripts/pythondeps
@@ -187,7 +187,7 @@ def get_depends_recursive(directory):
187 directory = os.path.realpath(directory) 187 directory = os.path.realpath(directory)
188 188
189 provides = dict((v, k) for k, v in get_provides(directory)) 189 provides = dict((v, k) for k, v in get_provides(directory))
190 for filename, provide in provides.iteritems(): 190 for filename, provide in provides.items():
191 if os.path.isdir(filename): 191 if os.path.isdir(filename):
192 filename = os.path.join(filename, '__init__.py') 192 filename = os.path.join(filename, '__init__.py')
193 ispkg = True 193 ispkg = True