qapi: convert to use python print function instead of statement
commitef9d9108917d6d5f903bca31602827e512a51c50
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 16 Jan 2018 13:42:04 +0000 (16 13:42 +0000)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 5 Feb 2018 21:53:54 +0000 (5 19:53 -0200)
tree0614648927647a3b52779268fc55831cac34f0c4
parentf24ee107a07f093bd7ed475dd48d7ba57ea3d8fe
qapi: convert to use python print function instead of statement

Python 3 no longer supports the bare "print" statement, it must be
called as a normal function with round brackets. It is possible to
opt-in to this new syntax with Python 2.6 onwards by importing the
"print_function" from the "__future__" module, making it easy to
support Python 2 and 3 in parallel.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <20180116134217.8725-2-berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/qapi.py
scripts/qapi2texi.py
tests/qapi-schema/test-qapi.py