mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
qapi: use items()/values() intead of iteritems()/itervalues()
The iteritems()/itervalues() methods are gone in py3, but the items()/values() methods are still around. The latter are less efficient than the former in py2, but this has unmeasurably small impact on QEMU build time, so taking portability over efficiency is a net win. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-Id: <20180116134217.8725-3-berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
ef9d910891
commit
2f84804470
3 changed files with 8 additions and 8 deletions
|
@ -63,7 +63,7 @@ for doc in schema.docs:
|
|||
else:
|
||||
print('doc freeform')
|
||||
print(' body=\n%s' % doc.body.text)
|
||||
for arg, section in doc.args.iteritems():
|
||||
for arg, section in doc.args.items():
|
||||
print(' arg=%s\n%s' % (arg, section.text))
|
||||
for section in doc.sections:
|
||||
print(' section=%s\n%s' % (section.name, section.text))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue