[libvirt] [glib PATCH 08/16] conn-test: Use print() in a py3 compatible way

Fabiano Fidêncio fidencio at redhat.com
Mon May 20 08:31:54 UTC 2019


Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 examples/conn-test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/conn-test.py b/examples/conn-test.py
index 100f5f5..3b680b8 100644
--- a/examples/conn-test.py
+++ b/examples/conn-test.py
@@ -33,9 +33,9 @@ def done(conn, result, data):
             try:
                 conf.validate()
 
-                print "Document is valid according to %s" % conf.get_schema()
+                print ("Document is valid according to %s" % conf.get_schema())
             except Exception, e:
-                print "Document is not valid according to %s: %s: %s" % (conf.get_schema(), str(e), str(type(e)))
+                print ("Document is not valid according to %s: %s: %s" % (conf.get_schema(), str(e), str(type(e))))
 
             xml = conf.to_xml()
             print ("XML " + xml)
-- 
2.21.0




More information about the libvir-list mailing list