diff options
Diffstat (limited to 'test/initiate-ussd')
-rwxr-xr-x | test/initiate-ussd | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/initiate-ussd b/test/initiate-ussd index 098ec878..d7022f1d 100755 --- a/test/initiate-ussd +++ b/test/initiate-ussd @@ -4,7 +4,7 @@ import sys import dbus if (len(sys.argv) < 2): - print "Usage: %s [modem] <ussd-string>" % (sys.argv[0]) + print("Usage: %s [modem] <ussd-string>" % (sys.argv[0])) sys.exit(1) bus = dbus.SystemBus() @@ -27,7 +27,7 @@ ussd = dbus.Interface(bus.get_object('org.ofono', path), properties = ussd.GetProperties() state = properties["State"] -print "State: %s" % (state) +print("State: %s" % (state)) if state != "idle": sys.exit(1); @@ -37,12 +37,12 @@ result = ussd.Initiate(ussdstring, timeout=100) properties = ussd.GetProperties() state = properties["State"] -print result[0] + ": " + result[1] +print(result[0] + ": " + result[1]) if state == "idle": sys.exit(0) -print "State: %s" % (state) +print("State: %s" % (state)) while state == "user-response": response = raw_input("Enter response: ") @@ -52,7 +52,7 @@ while state == "user-response": properties = ussd.GetProperties() state = properties["State"] - print result + print(result) if state != "idle": - print "State: %s" % (state) + print("State: %s" % (state)) |