[MERGE] Minor profiling fixes
Ian Clatworthy
ian.clatworthy at internode.on.net
Mon Sep 10 09:23:02 BST 2007
Martin Pool wrote:
>>> Also, KeyboardInterrupt is an Exception, so that code is clearly wrong
>>> regardless.
>
> tis not!
>
> Python 2.5.1 (r251:54863, Aug 17 2007, 18:40:36)
> [GCC 4.1.3 20070812 (prerelease) (Ubuntu 4.1.2-15ubuntu2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> issubclass(KeyboardInterrupt, Exception)
> False
>>>> issubclass(KeyboardInterrupt, BaseException)
> True
Hmm - so much for the official documentation:
http://docs.python.org/lib/module-exceptions.html. :-(
> It's needed for python2.5, so please put it back.
Fixed.
Ian C.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profiling-fixes-3.patch
Type: text/x-patch
Size: 9028 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070910/da376dda/attachment-0001.bin
More information about the bazaar
mailing list