bare excepts

Robert Collins robertc at robertcollins.net
Tue Jan 3 06:14:17 GMT 2006


On Mon, 2006-01-02 at 23:35 -0600, John Arbash Meinel wrote:
> Seems +1 to me.
> I know there is a specific reason to do so in transport/sftp.py to
> handle cleanup.
> But having a test where people need to be sure that they are doing the
> right thing is reasonable.

I've peeked at sftp.py - I think that try:finally:  would do there - as
python will take care of raising the exception (as long as we dont raise
a *new* one out of the finally clause.

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060103/f9b1da14/attachment.pgp 


More information about the bazaar mailing list