[Buildroot] [PATCH v2 02/10] autobuild-run, python3: dict.iteritems()->items()
André Erdmann
dywi at mailerd.de
Wed Mar 18 15:50:35 UTC 2015
Some dict methods, like iteritems(), have been dropped in Python 3,
while the semantics of others, e.g. items(), has changed.
The Py3k variant of items() returns a "view" object, whereas the Py2k variant
returns a list, but both methods essentially do the same thing here.
Signed-off-by: André Erdmann <dywi at mailerd.de>
---
scripts/autobuild-run | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/autobuild-run b/scripts/autobuild-run
index 01f0957..1edffc1 100755
--- a/scripts/autobuild-run
+++ b/scripts/autobuild-run
@@ -105,7 +105,7 @@ Default values for the arguments are:
%s
""" % '\n '.join(
- ['%s = %s' % (key, val) for (key, val) in defaults.iteritems()])
+ ['%s = %s' % (key, val) for (key, val) in defaults.items()])
__doc__ = doc
--
2.3.2
More information about the buildroot
mailing list