1
0
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:
NeroBurner 2015-09-16 22:44:41 +02:00 committed by Daniel Martí
parent 967472408b
commit af38f151a2
4 changed files with 9 additions and 9 deletions

12
fdroid
View File

@ -46,12 +46,12 @@ commands = {
def print_help(): def print_help():
print "usage: fdroid [-h|--help|--version] <command> [<args>]" print("usage: fdroid [-h|--help|--version] <command> [<args>]")
print print("")
print "Valid commands are:" print("Valid commands are:")
for cmd, summary in commands.items(): for cmd, summary in commands.items():
print " " + cmd + ' ' * (15 - len(cmd)) + summary print(" " + cmd + ' ' * (15 - len(cmd)) + summary)
print print()
def main(): def main():
@ -92,7 +92,7 @@ def main():
print(output), print(output),
sys.exit(0) sys.exit(0)
else: else:
print "Command '%s' not recognised.\n" % command print("Command '%s' not recognised.\n" % command)
print_help() print_help()
sys.exit(1) sys.exit(1)

View File

@ -1949,7 +1949,7 @@ def get_per_app_repos():
repos = [] repos = []
for root, dirs, files in os.walk(os.getcwd()): for root, dirs, files in os.walk(os.getcwd()):
for d in dirs: for d in dirs:
print 'checking', root, 'for', d print('checking', root, 'for', d)
if d in ('archive', 'metadata', 'repo', 'srclibs', 'tmp'): if d in ('archive', 'metadata', 'repo', 'srclibs', 'tmp'):
# standard parts of an fdroid repo, so never packageNames # standard parts of an fdroid repo, so never packageNames
continue continue

View File

@ -348,7 +348,7 @@ def main():
if warns: if warns:
anywarns = True anywarns = True
for warn in warns: for warn in warns:
print "%s: %s" % (appid, warn) print("%s: %s" % (appid, warn))
if anywarns: if anywarns:
sys.exit(1) sys.exit(1)

View File

@ -318,7 +318,7 @@ def main():
probcount += 1 probcount += 1
logging.info("Finished:") logging.info("Finished:")
print "%d problems found" % probcount print("%d problems found" % probcount)
if __name__ == "__main__": if __name__ == "__main__":
main() main()