Signed-off-by: Fabiano FidĂȘncio <fidencio(a)redhat.com>
---
examples/event-test.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/examples/event-test.py b/examples/event-test.py
index 7668b56..f847e57 100644
--- a/examples/event-test.py
+++ b/examples/event-test.py
@@ -23,21 +23,21 @@ def eventToString(event):
return eventStrings[event]
def myDomainEventCallback1 (conn, dom, event, detail, opaque):
- print "myDomainEventCallback1 EVENT: Domain %s(%s) %s" % (dom.name(),
dom.ID(), eventToString(event))
+ print("myDomainEventCallback1 EVENT: Domain %s(%s) %s" % (dom.name(),
dom.ID(), eventToString(event)))
def myDomainEventCallback2 (conn, dom, event, detail, opaque):
- print "myDomainEventCallback2 EVENT: Domain %s(%s) %s" % (dom.name(),
dom.ID(), eventToString(event))
+ print("myDomainEventCallback2 EVENT: Domain %s(%s) %s" % (dom.name(),
dom.ID(), eventToString(event)))
def usage():
- print "usage: "+os.path.basename(sys.argv[0])+" [uri]"
- print " uri will default to qemu:///system"
+ print("usage: "+os.path.basename(sys.argv[0])+" [uri]")
+ print(" uri will default to qemu:///system")
def main():
try:
opts, args = getopt.getopt(sys.argv[1:], "h", ["help"] )
except getopt.GetoptError, err:
# print help information and exit:
- print str(err) # will print something like "option -a not recognized"
+ print(str(err)) # will print something like "option -a not recognized"
usage()
sys.exit(2)
for o, a in opts:
@@ -50,7 +50,7 @@ def main():
else:
uri = "qemu:///system"
- print "Using uri:" + uri
+ print("Using uri:" + uri)
LibvirtGLib.init()
LibvirtGLib.event_register()
--
2.21.0