summaryrefslogtreecommitdiffstats
path: root/test/disable-call-forwarding
diff options
context:
space:
mode:
Diffstat (limited to 'test/disable-call-forwarding')
-rwxr-xr-xtest/disable-call-forwarding12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/disable-call-forwarding b/test/disable-call-forwarding
index ca0ba903..a88821dc 100755
--- a/test/disable-call-forwarding
+++ b/test/disable-call-forwarding
@@ -8,17 +8,17 @@ import dbus.mainloop.glib
def property_changed(property, value):
if len(value.__str__()) > 0:
- print "CF property %s changed to %s" % (property, value)
+ print("CF property %s changed to %s" % (property, value))
else:
- print "CF property %s changed to disabled" % (property)
+ print("CF property %s changed to disabled" % (property))
if canexit:
mainloop.quit();
if __name__ == "__main__":
if len(sys.argv) < 2:
- print "Usage: %s <type>" % (sys.argv[0])
- print "Type can be: all, conditional"
+ print("Usage: %s <type>" % (sys.argv[0]))
+ print("Type can be: all, conditional")
sys.exit(1)
canexit = False
@@ -42,10 +42,10 @@ if __name__ == "__main__":
try:
cf.DisableAll(type, timeout = 100)
except dbus.DBusException, e:
- print "Unable to DisableAll", e
+ print("Unable to DisableAll %s" % e)
sys.exit(1);
- print "DisableAll successful"
+ print("DisableAll successful")
canexit = True