mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-19 21:30:10 +01:00
Change print-function to have brackets
This commit is contained in:
parent
967472408b
commit
af38f151a2
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)
|
||||
|
||||
|
@ -1949,7 +1949,7 @@ def get_per_app_repos():
|
||||
repos = []
|
||||
for root, dirs, files in os.walk(os.getcwd()):
|
||||
for d in dirs:
|
||||
print 'checking', root, 'for', d
|
||||
print('checking', root, 'for', d)
|
||||
if d in ('archive', 'metadata', 'repo', 'srclibs', 'tmp'):
|
||||
# standard parts of an fdroid repo, so never packageNames
|
||||
continue
|
||||
|
@ -348,7 +348,7 @@ def main():
|
||||
if warns:
|
||||
anywarns = True
|
||||
for warn in warns:
|
||||
print "%s: %s" % (appid, warn)
|
||||
print("%s: %s" % (appid, warn))
|
||||
|
||||
if anywarns:
|
||||
sys.exit(1)
|
||||
|
@ -318,7 +318,7 @@ def main():
|
||||
probcount += 1
|
||||
|
||||
logging.info("Finished:")
|
||||
print "%d problems found" % probcount
|
||||
print("%d problems found" % probcount)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user