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