From 16cc178ba0e5642f372efb6a991c1d9501ad6777 Mon Sep 17 00:00:00 2001 From: TingPing Date: Fri, 15 Mar 2013 08:55:15 -0300 Subject: update dbus example.py for python3 --- src/common/dbus/example.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/dbus/example.py b/src/common/dbus/example.py index 49855784..f326e98a 100644 --- a/src/common/dbus/example.py +++ b/src/common/dbus/example.py @@ -15,14 +15,14 @@ hexchat = dbus.Interface(proxy, 'org.hexchat.plugin') channels = hexchat.ListGet ("channels") while hexchat.ListNext (channels): name = hexchat.ListStr (channels, "channel") - print "------- " + name + " -------" + print("------- " + name + " -------") hexchat.SetContext (hexchat.ListInt (channels, "context")) hexchat.EmitPrint ("Channel Message", ["John", "Hi there", "@"]) users = hexchat.ListGet ("users") while hexchat.ListNext (users): - print "Nick: " + hexchat.ListStr (users, "nick") + print("Nick: " + hexchat.ListStr (users, "nick")) hexchat.ListFree (users) hexchat.ListFree (channels) -print hexchat.Strip ("\00312Blue\003 \002Bold!\002", -1, 1|2) +print(hexchat.Strip ("\00312Blue\003 \002Bold!\002", -1, 1|2)) -- cgit 1.4.1