appmenus: remove trailing semicolons in python code

This commit is contained in:
Marek Marczykowski-Górecki 2014-02-16 20:14:00 +01:00
parent 36c8885ff2
commit 155567cfcf

View File

@ -64,7 +64,7 @@ def get_appmenus(vm):
while appmenus_line_count > 0: while appmenus_line_count > 0:
untrusted_line = sys.stdin.readline(appmenus_line_size) untrusted_line = sys.stdin.readline(appmenus_line_size)
if untrusted_line == "": if untrusted_line == "":
break; break
untrusted_appmenulist.append(untrusted_line.strip()) untrusted_appmenulist.append(untrusted_line.strip())
appmenus_line_count -= 1 appmenus_line_count -= 1
if appmenus_line_count == 0: if appmenus_line_count == 0:
@ -74,7 +74,7 @@ def get_appmenus(vm):
while appmenus_line_count > 0: while appmenus_line_count > 0:
untrusted_line = p.stdout.readline(appmenus_line_size) untrusted_line = p.stdout.readline(appmenus_line_size)
if untrusted_line == "": if untrusted_line == "":
break; break
untrusted_appmenulist.append(untrusted_line.strip()) untrusted_appmenulist.append(untrusted_line.strip())
appmenus_line_count -= 1 appmenus_line_count -= 1
p.wait() p.wait()
@ -115,7 +115,7 @@ def get_appmenus(vm):
print >>sys.stderr, "Warning: ignoring key %s: %s" % (untrusted_key, untrusted_value) print >>sys.stderr, "Warning: ignoring key %s: %s" % (untrusted_key, untrusted_value)
# else: ignore this key # else: ignore this key
else: else:
print >>sys.stderr, "Warning: ignoring line: %s" % (untrusted_line); print >>sys.stderr, "Warning: ignoring line: %s" % (untrusted_line)
return appmenus return appmenus