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():
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)

View File

@ -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

View File

@ -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)

View File

@ -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()