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 0FA5F200BC0 for ; Tue, 1 Nov 2016 02:16:40 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0E2BD160B06; Tue, 1 Nov 2016 01:16:40 +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 532B9160B05 for ; Tue, 1 Nov 2016 02:16:39 +0100 (CET) Received: (qmail 9514 invoked by uid 500); 1 Nov 2016 01:16:38 -0000 Mailing-List: contact commits-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@arrow.apache.org Delivered-To: mailing list commits@arrow.apache.org Received: (qmail 9505 invoked by uid 99); 1 Nov 2016 01:16:38 -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; Tue, 01 Nov 2016 01:16:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6BE2EE0A05; Tue, 1 Nov 2016 01:16:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wesm@apache.org To: commits@arrow.apache.org Message-Id: <36cf79f25f9946d79d758b3792fcc00c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: arrow git commit: ARROW-339: [Dev] Lingering Python 3 fixes Date: Tue, 1 Nov 2016 01:16:38 +0000 (UTC) archived-at: Tue, 01 Nov 2016 01:16:40 -0000 Repository: arrow Updated Branches: refs/heads/master 772bc6ea6 -> ca088dd19 ARROW-339: [Dev] Lingering Python 3 fixes I missed a couple Python 3 things. I'll leave this open until one of us successfully merged another patch with this before we merge it. Author: Wes McKinney Closes #191 from wesm/ARROW-339-2 and squashes the following commits: 78bf094 [Wes McKinney] Lingering Python 3 fixes Project: http://git-wip-us.apache.org/repos/asf/arrow/repo Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/ca088dd1 Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/ca088dd1 Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/ca088dd1 Branch: refs/heads/master Commit: ca088dd19eb4283c71252de39782d811f985649a Parents: 772bc6e Author: Wes McKinney Authored: Mon Oct 31 21:16:29 2016 -0400 Committer: Wes McKinney Committed: Mon Oct 31 21:16:29 2016 -0400 ---------------------------------------------------------------------- dev/merge_arrow_pr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/arrow/blob/ca088dd1/dev/merge_arrow_pr.py ---------------------------------------------------------------------- diff --git a/dev/merge_arrow_pr.py b/dev/merge_arrow_pr.py index aa899ed..f7e7a37 100755 --- a/dev/merge_arrow_pr.py +++ b/dev/merge_arrow_pr.py @@ -210,7 +210,7 @@ def fix_version_from_branch(branch, versions): def exctract_jira_id(title): m = re.search(r'^(ARROW-[0-9]+)\b.*$', title) - if m and m.groups > 0: + if m: return m.group(1) else: fail("PR title should be prefixed by a jira id " @@ -256,8 +256,8 @@ def resolve_jira(title, merge_branches, comment): print("summary\t\t%s\nassignee\t%s\nstatus\t\t%s\nurl\t\t%s/%sf\n" % (cur_summary, cur_assignee, cur_status, JIRA_BASE, jira_id)) - resolve = filter(lambda a: a['name'] == "Resolve Issue", - asf_jira.transitions(jira_id))[0] + resolve = [x for x in asf_jira.transitions(jira_id) + if x['name'] == "Resolve Issue"][0] asf_jira.transition_issue(jira_id, resolve["id"], comment=comment) print("Succesfully resolved %s!" % (jira_id))