predictionio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From don...@apache.org
Subject [1/4] incubator-predictionio-template-attribute-based-classifier git commit: python3 support
Date Thu, 04 May 2017 17:32:28 GMT
Repository: incubator-predictionio-template-attribute-based-classifier
Updated Branches:
  refs/heads/develop 58c5179ef -> 903f9eef4


python3 support


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-attribute-based-classifier/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-attribute-based-classifier/commit/cf1750dd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-attribute-based-classifier/tree/cf1750dd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-attribute-based-classifier/diff/cf1750dd

Branch: refs/heads/develop
Commit: cf1750dd7dbe54391f9cc0610faeb6d97e859c01
Parents: 58c5179
Author: Shinsuke Sugaya <shinsuke@yahoo.co.jp>
Authored: Wed Mar 15 18:52:19 2017 +0900
Committer: Shinsuke Sugaya <shinsuke@yahoo.co.jp>
Committed: Wed Mar 15 18:52:19 2017 +0900

----------------------------------------------------------------------
 data/import_eventserver.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-attribute-based-classifier/blob/cf1750dd/data/import_eventserver.py
----------------------------------------------------------------------
diff --git a/data/import_eventserver.py b/data/import_eventserver.py
index 7e808e3..679ce6d 100644
--- a/data/import_eventserver.py
+++ b/data/import_eventserver.py
@@ -8,7 +8,7 @@ import argparse
 def import_events(client, file):
   f = open(file, 'r')
   count = 0
-  print "Importing data..."
+  print("Importing data...")
   for line in f:
     data = line.rstrip('\r\n').split(",")
     plan = data[0]
@@ -26,7 +26,7 @@ def import_events(client, file):
     )
     count += 1
   f.close()
-  print "%s events are imported." % count
+  print("%s events are imported." % count)
 
 if __name__ == '__main__':
   parser = argparse.ArgumentParser(
@@ -36,7 +36,7 @@ if __name__ == '__main__':
   parser.add_argument('--file', default="./data/data.txt")
 
   args = parser.parse_args()
-  print args
+  print(args)
 
   client = predictionio.EventClient(
     access_key=args.access_key,


Mime
View raw message