Repository: incubator-predictionio-template-text-classifier Updated Branches: refs/heads/develop fadef4318 -> 4a78a5fc6
Python 3 support Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-text-classifier/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-text-classifier/commit/4a78a5fc Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-text-classifier/tree/4a78a5fc Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-template-text-classifier/diff/4a78a5fc Branch: refs/heads/develop Commit: 4a78a5fc66f4d397117d633929fb62f6fcc5b23e Parents: fadef43 Author: Shinsuke Sugaya <[email protected]> Authored: Wed Jun 7 19:13:11 2017 +0900 Committer: Shinsuke Sugaya <[email protected]> Committed: Wed Jun 7 19:13:11 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-text-classifier/blob/4a78a5fc/data/import_eventserver.py ---------------------------------------------------------------------- diff --git a/data/import_eventserver.py b/data/import_eventserver.py index 12ac9f9..cd613a4 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/Twitter140sample.txt") args = parser.parse_args() - print args + print(args) client = predictionio.EventClient( access_key=args.access_key,
