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 76634200D70 for ; Fri, 22 Dec 2017 04:40:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 74B41160C2C; Fri, 22 Dec 2017 03:40:14 +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 E18FD160C2B for ; Fri, 22 Dec 2017 04:40:13 +0100 (CET) Received: (qmail 80457 invoked by uid 500); 22 Dec 2017 03:40:13 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 80447 invoked by uid 99); 22 Dec 2017 03:40:12 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Dec 2017 03:40:12 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id BB2A13A0098 for ; Fri, 22 Dec 2017 03:40:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1818994 - /subversion/branches/swig-py3/subversion/bindings/swig/core.i Date: Fri, 22 Dec 2017 03:40:09 -0000 To: commits@subversion.apache.org From: troycurtisjr@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20171222034011.BB2A13A0098@svn01-us-west.apache.org> archived-at: Fri, 22 Dec 2017 03:40:14 -0000 Author: troycurtisjr Date: Fri Dec 22 03:40:08 2017 New Revision: 1818994 URL: http://svn.apache.org/viewvc?rev=1818994&view=rev Log: On branch swig-py3: Disable invalid PyInt_Check() in Python 3. * subversion/bindings/swig/core.i (%typemap(in) (char *buffer, apr_size_t *len)): Remove PyInt_Check() when building against Python 3, since it has been removed. Modified: subversion/branches/swig-py3/subversion/bindings/swig/core.i Modified: subversion/branches/swig-py3/subversion/bindings/swig/core.i URL: http://svn.apache.org/viewvc/subversion/branches/swig-py3/subversion/bindings/swig/core.i?rev=1818994&r1=1818993&r2=1818994&view=diff ============================================================================== --- subversion/branches/swig-py3/subversion/bindings/swig/core.i (original) +++ subversion/branches/swig-py3/subversion/bindings/swig/core.i Fri Dec 22 03:40:08 2017 @@ -387,6 +387,7 @@ if (PyLong_Check($input)) { temp = PyLong_AsUnsignedLong($input); } +%#if IS_PY3 != 1 else if (PyInt_Check($input)) { /* wish there was a PyInt_AsUnsignedLong but there isn't the mask version doesn't do bounds checking for us. @@ -395,6 +396,7 @@ problem goes away because PyInt is gone anyway. */ temp = PyInt_AsUnsignedLongMask($input); } +%#endif else { PyErr_SetString(PyExc_TypeError, "expecting an integer for the buffer size");