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

Re: Locking branch has been merged [Re: svn commit: r13571]

From: Travis <svn_at_castle.fastmail.fm>
Date: 2005-03-23 15:40:45 CET

On Mar 23, 2005, at 5:43 AM, Tobias Ringström wrote:

> Travis wrote:
>> File
>> "/usr/pkg/svn-trunk/trunk/subversion/tests/clients/cmdline/svntest/
>> main.py", line 331, in file_append
>> fp = open(path, 'a') # open in (a)ppend mode
>> IOError: invalid mode: a
> I think I've seen that error before on OS/X. If you start python and
> type help(open), is 'a' not listed there as a valid mode? I just
> checked, and 'a' is listed as a valid mode since Python 1.4. You can
> double check that we're looking at the right thing by typing
> open("tmp.txt","a"). If that is not giving you the same error, open is
> overloaded somewhere.

help(open) does show "The mode can be 'r', 'w' or 'a' for reading

And it does appear to work when invoked on a temp file as you suggested
testing (I tested both when the target file exists and when it
>>> open("tmp.txt","a")
   <open file 'tmp.txt', mode 'a' at 0x661e0>

Python reports a version of 2.3.

I've not used Python (yet), so I've no ideas myself what could be
overloading open.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 23 15:42:19 2005

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

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