[win32] Permission denied in fancy_rename
John Arbash Meinel
john at arbash-meinel.com
Tue May 2 14:41:29 BST 2006
Martin Pool wrote:
> On 1 May 2006, Aaron Bentley <aaron.bentley at utoronto.ca> wrote:
>> Alexander Belchenko wrote:
>>> Dear core developers! Don't leave files opened after use! Please, close
>>> them explicitly! Or bzr always has minor issues on windows platform.
>> Unfortunately, I only became aware of this issue when you posted about
>> it very recently. So until then, everything I'd written had unclosed
>> files. I wouldn't be surprised if the same is true for others, but the
>> reminder can't hurt.
>
> Even on Unix we must close files - otherwise there is no guarantee that
> the content will actually have been written out from Python's buffers.
> I'm sure I mentioned that in a review once, but we should add it to the
> hacking guidelines.
>
Just so everyone realizes, that means that everything returned by
Transport.get() needs to be closed.
And probably the meme:
TransportB.put(TransportA.get())
cannot be used. Which is a shame.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060502/17be1d7c/attachment.pgp
More information about the bazaar
mailing list