Use "items" instead of "iteritems" (PY2/3) // Issue #895

This commit is contained in:
Ivan Kravets committed 2018-10-27 20:51:55 +03:00
1 parent 080369f597
commit e94d758131
6 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -604,7 +604,7 @@ class PlatformBase( # pylint: disable=too-many-public-methods
# enable upload tools for upload targets
if any(["upload" in t for t in targets] + ["program" in targets]):
for name, opts in self.packages.iteritems():
for name, opts in self.packages.items():
if opts.get("type") == "uploader":
self.packages[name]['optional'] = False
# skip all packages in "nobuild" mode