mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
Change print-function to have brackets
This commit is contained in:
parent
967472408b
commit
af38f151a2
4 changed files with 9 additions and 9 deletions
12
fdroid
12
fdroid
|
|
@ -46,12 +46,12 @@ commands = {
|
|||
|
||||
|
||||
def print_help():
|
||||
print "usage: fdroid [-h|--help|--version] <command> [<args>]"
|
||||
print
|
||||
print "Valid commands are:"
|
||||
print("usage: fdroid [-h|--help|--version] <command> [<args>]")
|
||||
print("")
|
||||
print("Valid commands are:")
|
||||
for cmd, summary in commands.items():
|
||||
print " " + cmd + ' ' * (15 - len(cmd)) + summary
|
||||
print
|
||||
print(" " + cmd + ' ' * (15 - len(cmd)) + summary)
|
||||
print()
|
||||
|
||||
|
||||
def main():
|
||||
|
|
@ -92,7 +92,7 @@ def main():
|
|||
print(output),
|
||||
sys.exit(0)
|
||||
else:
|
||||
print "Command '%s' not recognised.\n" % command
|
||||
print("Command '%s' not recognised.\n" % command)
|
||||
print_help()
|
||||
sys.exit(1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue