community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1696574 - /comdev/reporter.apache.org/trunk/scandist_test.py
Date Wed, 19 Aug 2015 12:30:37 GMT
Author: sebb
Date: Wed Aug 19 12:30:37 2015
New Revision: 1696574

URL: http://svn.apache.org/r1696574
Log:
Make the print statements compatible with Python3

Modified:
    comdev/reporter.apache.org/trunk/scandist_test.py

Modified: comdev/reporter.apache.org/trunk/scandist_test.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scandist_test.py?rev=1696574&r1=1696573&r2=1696574&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scandist_test.py (original)
+++ comdev/reporter.apache.org/trunk/scandist_test.py Wed Aug 19 12:30:37 2015
@@ -11,6 +11,7 @@ TODO: needs to check the output somehow
 
 """
 
+from __future__ import print_function
 import scandist
 import json
 import ast
@@ -19,13 +20,13 @@ import datetime
 def processBatch():
     for project in scandist.targets:
         # show what is to be processed
-        print "Batch: <<",project,
+        print("Batch: <<",project, end="")
         committers = scandist.targets[project]
         for committer in committers:
-            print committer,
+            print(committer, end="")
             for entry in committers[committer]:
-                print entry['id'],
-        print ">>"
+                print(entry['id'], end="")
+        print(">>")
     scandist.processTargets()
     
 if __name__ == "__main__":



Mime
View raw message