Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 63E5A200C8F for ; Thu, 4 May 2017 19:32:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 62CAF160B9B; Thu, 4 May 2017 17:32:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 96FBE160BC4 for ; Thu, 4 May 2017 19:32:43 +0200 (CEST) Received: (qmail 11072 invoked by uid 500); 4 May 2017 17:32:42 -0000 Mailing-List: contact commits-help@predictionio.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@predictionio.incubator.apache.org Delivered-To: mailing list commits@predictionio.incubator.apache.org Received: (qmail 11037 invoked by uid 99); 4 May 2017 17:32:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2017 17:32:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4A04C188A30 for ; Thu, 4 May 2017 17:32:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.222 X-Spam-Level: X-Spam-Status: No, score=-4.222 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id HDmaIxCPHucF for ; Thu, 4 May 2017 17:32:41 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 1B98E5FD29 for ; Thu, 4 May 2017 17:32:41 +0000 (UTC) Received: (qmail 10960 invoked by uid 99); 4 May 2017 17:32:39 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2017 17:32:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 992C8E01EA; Thu, 4 May 2017 17:32:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: donald@apache.org To: commits@predictionio.incubator.apache.org Date: Thu, 04 May 2017 17:32:40 -0000 Message-Id: <98b0cc8ea673406bb268852f3279cec6@git.apache.org> In-Reply-To: <3170a87a29c14b489eaddb6b8f975c95@git.apache.org> References: <3170a87a29c14b489eaddb6b8f975c95@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/6] incubator-predictionio-template-attribute-based-classifier git commit: python3 support archived-at: Thu, 04 May 2017 17:32:44 -0000 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/master Commit: cf1750dd7dbe54391f9cc0610faeb6d97e859c01 Parents: 58c5179 Author: Shinsuke Sugaya Authored: Wed Mar 15 18:52:19 2017 +0900 Committer: Shinsuke Sugaya 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,