summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-03-15 08:55:15 -0300
committerTingPing <tngpng@gmail.com>2013-03-15 08:55:15 -0300
commit16cc178ba0e5642f372efb6a991c1d9501ad6777 (patch)
treee856fe30182544e7a56cef333fcbe6dcd90df840 /src/common
parentec354038db2a526c834db762829c6e4d84f11919 (diff)
update dbus example.py for python3
Diffstat (limited to 'src/common')
-rw-r--r--src/common/dbus/example.py6
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))