You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/08/19 14:30:37 UTC

svn commit: r1696574 - /comdev/reporter.apache.org/trunk/scandist_test.py

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__":