From af38f151a2dd33072d33edfcaf1667ff39fa8f3c Mon Sep 17 00:00:00 2001 From: NeroBurner Date: Wed, 16 Sep 2015 22:44:41 +0200 Subject: [PATCH] Change print-function to have brackets --- fdroid | 12 ++++++------ fdroidserver/common.py | 2 +- fdroidserver/lint.py | 2 +- fdroidserver/scanner.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/fdroid b/fdroid index ef3a001a..f4d23cbf 100755 --- a/fdroid +++ b/fdroid @@ -46,12 +46,12 @@ commands = { def print_help(): - print "usage: fdroid [-h|--help|--version] []" - print - print "Valid commands are:" + print("usage: fdroid [-h|--help|--version] []") + 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) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index a05148af..aa19f161 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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 diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 5932bd61..cca735b0 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -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) diff --git a/fdroidserver/scanner.py b/fdroidserver/scanner.py index f57c2f1b..dde02977 100644 --- a/fdroidserver/scanner.py +++ b/fdroidserver/scanner.py @@ -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()