[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: mailer.py commit says TypeError: must be unicode, not str

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Thu, 1 Feb 2018 00:02:05 -0500

On Wed, Jan 31, 2018 at 10:40 PM, Kenneth Porter <shiva_at_sewingwitch.com> wrote:
> --On Wednesday, January 31, 2018 7:23 PM -0800 Kenneth Porter
> <shiva_at_sewingwitch.com> wrote:
>
>> fp = builtins.open(file, 'w+') # avoid namespace clash with
>> # trimmed-down svn_fs_open()
>
>
> I'm now thinking the problem is in the open call, and that I'm somehow
> getting a Python 3 open function even though I've got Python 2.7 installed.
> Should the mode be 'wb' instead of 'w+'? That would insure that the raw data
> from the Subversion object is getting dumped into the temporary fle without
> interpretation. I don't understand why update (denoted by the plus) is
> wanted. The temp file isn't being read from.

If you are on RHEL based operating systems, some of them install both,
and sometimes with some fascinating "PATH" settings. It can be very
handy to edit customized .py scripts to explicitly call the version of
Python you reall want to use.
Received on 2018-02-01 06:02:18 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.