mirror of git://git.sysmocom.de/ofono
test: Remove unneeded semicolons in STK test script
This commit is contained in:
parent
c091a5c5e7
commit
e292f142ad
|
@ -51,7 +51,7 @@ class StkAgent(dbus.service.Object):
|
|||
def RequestSelection(self, title, icon, items, default):
|
||||
print "Title: (%s)" % (title)
|
||||
print "Icon: (%d)" % (icon)
|
||||
index = 0;
|
||||
index = 0
|
||||
for item in items:
|
||||
print "%d. %s (icon: %d)" % (index, item[0], item[1])
|
||||
index += 1
|
||||
|
@ -64,7 +64,7 @@ class StkAgent(dbus.service.Object):
|
|||
elif select == 't':
|
||||
raise EndSession("User wishes to terminate session")
|
||||
else:
|
||||
return int(select);
|
||||
return int(select)
|
||||
|
||||
@dbus.service.method("org.ofono.SimToolkitAgent",
|
||||
in_signature="syb", out_signature="",
|
||||
|
@ -107,7 +107,7 @@ class StkAgent(dbus.service.Object):
|
|||
print "Hide typing: (%s)" % (hide_typing)
|
||||
print "Enter characters, min: %d, max: %d:" % (min_chars,
|
||||
max_chars)
|
||||
userin = raw_input("");
|
||||
userin = raw_input("")
|
||||
|
||||
return userin
|
||||
|
||||
|
@ -121,7 +121,7 @@ class StkAgent(dbus.service.Object):
|
|||
print "Hide typing: (%s)" % (hide_typing)
|
||||
print "Enter digits, min: %d, max: %d:" % (min_chars,
|
||||
max_chars)
|
||||
userin = raw_input("'t' terminates, 'b' goes back:");
|
||||
userin = raw_input("'t' terminates, 'b' goes back:")
|
||||
|
||||
if userin == 'b':
|
||||
raise GoBack("User wishes to go back")
|
||||
|
@ -138,9 +138,9 @@ class StkAgent(dbus.service.Object):
|
|||
key = raw_input("Enter Key (t, b):")
|
||||
|
||||
if key == 'b':
|
||||
raise GoBack("User wishes to go back");
|
||||
raise GoBack("User wishes to go back")
|
||||
elif key == 't':
|
||||
raise EndSession("User wishes to terminate session");
|
||||
raise EndSession("User wishes to terminate session")
|
||||
else:
|
||||
return key
|
||||
|
||||
|
@ -152,9 +152,9 @@ class StkAgent(dbus.service.Object):
|
|||
key = raw_input("Enter Digit (t, b):")
|
||||
|
||||
if key == 'b':
|
||||
raise GoBack("User wishes to go back");
|
||||
raise GoBack("User wishes to go back")
|
||||
elif key == 't':
|
||||
raise EndSession("User wishes to terminate session");
|
||||
raise EndSession("User wishes to terminate session")
|
||||
else:
|
||||
return key
|
||||
|
||||
|
@ -166,9 +166,9 @@ class StkAgent(dbus.service.Object):
|
|||
key = raw_input("Quick digit (0-9, *, #, t, b):")
|
||||
|
||||
if key == 'b':
|
||||
raise GoBack("User wishes to go back");
|
||||
raise GoBack("User wishes to go back")
|
||||
elif key == 't':
|
||||
raise EndSession("User wishes to terminate session");
|
||||
raise EndSession("User wishes to terminate session")
|
||||
else:
|
||||
return key
|
||||
|
||||
|
@ -180,9 +180,9 @@ class StkAgent(dbus.service.Object):
|
|||
key = raw_input("Enter Confirmation (t, b, y, n):")
|
||||
|
||||
if key == 'b':
|
||||
raise GoBack("User wishes to go back");
|
||||
raise GoBack("User wishes to go back")
|
||||
elif key == 't':
|
||||
raise EndSession("User wishes to terminate session");
|
||||
raise EndSession("User wishes to terminate session")
|
||||
elif key == 'y':
|
||||
return True
|
||||
else:
|
||||
|
@ -196,7 +196,7 @@ class StkAgent(dbus.service.Object):
|
|||
key = raw_input("Enter Confirmation (t, y, n):")
|
||||
|
||||
if key == 't':
|
||||
raise EndSession("User wishes to terminate session");
|
||||
raise EndSession("User wishes to terminate session")
|
||||
elif key == 'y':
|
||||
return True
|
||||
else:
|
||||
|
@ -276,7 +276,7 @@ class StkAgent(dbus.service.Object):
|
|||
key = raw_input("Enter Confirmation (t, y, n):")
|
||||
|
||||
if key == 't':
|
||||
raise EndSession("User wishes to terminate session");
|
||||
raise EndSession("User wishes to terminate session")
|
||||
elif key == 'y':
|
||||
return True
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue