[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: Kenneth Porter <shiva_at_sewingwitch.com>
Date: Wed, 31 Jan 2018 19:40:20 -0800

--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.
Received on 2018-02-01 04:46:15 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.