Re: [Qemu-devel] [PATCH 1/3] qemu.py: Use items() instead of iteritems()

2018-03-12 Thread Eduardo Habkost
On Tue, Mar 13, 2018 at 12:02:39AM +0100, Philippe Mathieu-Daudé wrote: > On 03/12/2018 07:55 PM, Eduardo Habkost wrote: > > items() is less efficient on Python 2.x, but makes the code work > > on both Python 2 and Python 3. > > > > Cc: Lukáš Doktor > > Cc: Philippe Mathieu-Daudé > > Cc: Cleber

Re: [Qemu-devel] [PATCH 1/3] qemu.py: Use items() instead of iteritems()

2018-03-12 Thread Philippe Mathieu-Daudé
On 03/12/2018 07:55 PM, Eduardo Habkost wrote: > items() is less efficient on Python 2.x, but makes the code work > on both Python 2 and Python 3. > > Cc: Lukáš Doktor > Cc: Philippe Mathieu-Daudé > Cc: Cleber Rosa > Signed-off-by: Eduardo Habkost > --- > scripts/qemu.py | 2 +- > 1 file chan

[Qemu-devel] [PATCH 1/3] qemu.py: Use items() instead of iteritems()

2018-03-12 Thread Eduardo Habkost
items() is less efficient on Python 2.x, but makes the code work on both Python 2 and Python 3. Cc: Lukáš Doktor Cc: Philippe Mathieu-Daudé Cc: Cleber Rosa Signed-off-by: Eduardo Habkost --- scripts/qemu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/qemu.py b/

Re: [Qemu-devel] [PATCH 1/3] qemu.py: Use items() instead of iteritems()

2018-03-12 Thread Daniel P . Berrangé
On Mon, Mar 12, 2018 at 03:55:01PM -0300, Eduardo Habkost wrote: > items() is less efficient on Python 2.x, but makes the code work > on both Python 2 and Python 3. > > Cc: Lukáš Doktor > Cc: Philippe Mathieu-Daudé > Cc: Cleber Rosa > Signed-off-by: Eduardo Habkost > --- > scripts/qemu.py | 2