From dev-return-37427-archive-asf-public=cust-asf.ponee.io@subversion.apache.org Wed Feb 7 18:37:21 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id A477318065B for ; Wed, 7 Feb 2018 18:37:21 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 94302160C5B; Wed, 7 Feb 2018 17:37:21 +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 DA7F7160C3A for ; Wed, 7 Feb 2018 18:37:20 +0100 (CET) Received: (qmail 61818 invoked by uid 500); 7 Feb 2018 17:37:20 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 61804 invoked by uid 99); 7 Feb 2018 17:37:19 -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; Wed, 07 Feb 2018 17:37:19 +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 D8B49180110 for ; Wed, 7 Feb 2018 17:37:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.002 X-Spam-Level: X-Spam-Status: No, score=-0.002 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id qdULi1TsobqT for ; Wed, 7 Feb 2018 17:37:15 +0000 (UTC) Received: from resqmta-po-11v.sys.comcast.net (resqmta-po-11v.sys.comcast.net [96.114.154.170]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A99CF5F17D for ; Wed, 7 Feb 2018 17:37:14 +0000 (UTC) Received: from resomta-po-12v.sys.comcast.net ([96.114.154.236]) by resqmta-po-11v.sys.comcast.net with ESMTP id jTdseV8YBiMTbjTebe7VTB; Wed, 07 Feb 2018 17:37:05 +0000 Received: from home.sewingwitch.com ([73.222.21.63]) by resomta-po-12v.sys.comcast.net with SMTP id jTeZey0zzqparjTeaeh06F; Wed, 07 Feb 2018 17:37:05 +0000 Received: from [10.0.0.39] ([10.0.0.39]) (authenticated bits=0) by home.sewingwitch.com (8.13.8/8.13.8) with ESMTP id w17HawNU013683 for ; Wed, 7 Feb 2018 09:36:58 -0800 Date: Wed, 07 Feb 2018 09:35:23 -0800 From: Kenneth Porter To: dev@subversion.apache.org Subject: Re: mailer.py commit says TypeError: must be unicode, not str Message-ID: In-Reply-To: <524BBA64291DF40676325FEB@[172.27.234.209]> References: <0cb91b9d-8672-2975-4b5f-a921e1727e03@sewingwitch.com> <3CDAB57F7ADD5234EEA3043C@172.27.234.209> <8ffda743-7920-6e9a-72c5-7805d18c6210@sewingwitch.com> <524BBA64291DF40676325FEB@[172.27.234.209]> X-Mailer: Mulberry/4.1.0a3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline; size=655 X-Scanned-By: MIMEDefang 2.68 on 10.0.0.128 X-CMAE-Envelope: MS4wfLM3J170UIzNIv71iYa2nf42xgK6OQYVYz+fuAKFidSwEo/hzxVnBxl/H/X3ieEwy8TltItcrfFCIo/844JwtAcFwVlblMsDyKeiHQsEpuYnhzy/naBI AUFKZ8yzq2CD6mUsA6ZRgTAEJcizrEooR2crD0ThBCHi06k/3IXN2Jee7LBEezUQLu6G1LEQoX1tLg== The overload of type was happening due to the unprefix stuff in fs.py. Red herring, though interesting. I distilled the failure down to this foo.py program. Of interest is that "import builtins" succeeds on a Python 2.5 system. It should be throwing unless Python is v3. So there's a builtins package hiding in this system somewhere. #!/usr/bin/env python # test subversion-python bug revealed by mailer.py import tempfile as _tempfile import builtins tempfile = _tempfile.mktemp() print tempfile #print sys.version fp = builtins.open(tempfile, 'w+') print type(fp) chunk = "" print type(chunk) fp.write(chunk) fp.close()