chiark / gitweb /
Change print-function to have brackets
authorNeroBurner <pyro4hell@gmail.com>
Wed, 16 Sep 2015 20:44:41 +0000 (22:44 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 29 Dec 2015 19:06:46 +0000 (20:06 +0100)
fdroid
fdroidserver/common.py
fdroidserver/lint.py
fdroidserver/scanner.py

diff --git a/fdroid b/fdroid
index ef3a001a011e90dbc650cf0b1a23e9ad6c5d6a14..f4d23cbfb337f911205cb223be352eb56d0a026d 100755 (executable)
--- a/fdroid
+++ b/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)
 
index a05148af8e85e70586154e775758ee71164a6349..aa19f1619a087e1c9163e2f60b4bee37a151e99e 100644 (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
index 5932bd618bcf6b7eaa1a27247ff181a92b34d326..cca735b0b80c21089e34a4cdd87ce7d93c57f6ae 100644 (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)
index f57c2f1be7e43a24d83e307ad0820abfa6815bbf..dde02977f47836df2148a7a90411869519385789 100644 (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()