diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/dbus/example.py | 6 |
1 files 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)) |