Lib/hotshot/stats.py patch is evil

Bug #88960 reported by ChrisW
4
Affects Status Importance Assigned to Milestone
python2.4 (Ubuntu)
Fix Released
Undecided
Matthias Klose
python2.5 (Ubuntu)
Fix Released
Undecided
Matthias Klose

Bug Description

Binary package hint: python2.4

See this post:

http://mail.zope.org/pipermail/zope3-dev/2007-March/021849.html

The patch referred to is here, apparently:

http://archive.ubuntu.com/ubuntu/pool/main/p/python2.4/python2.4_2.4.3-0ubuntu6.diff.gz

Catching an import error like this and so indescriminately dumping out with sys.exit is pretty evil.

This stuffs up and third party library or am that wants to test hotshot's availability by to a try: except ImportError:, of which Zope's testrunner is one such example...

Matthias Klose (doko)
Changed in python2.4:
assignee: nobody → doko
status: Unconfirmed → In Progress
Changed in python2.5:
assignee: nobody → doko
status: Unconfirmed → In Progress
Revision history for this message
Matthias Klose (doko) wrote :

fixed in python2.4_2.4.4-2ubuntu3

Changed in python2.4:
status: In Progress → Fix Released
Revision history for this message
ChrisW (chris-simplistix) wrote :

What fix was applied?

Is there any way I can see a diff of the fix?

Revision history for this message
Matthias Klose (doko) wrote :

> Is there any way I can see a diff of the fix?

yes, go to https://launchpad.net/ubuntu/+source/python2.4
download the last and the current of version of the .dsc and .diff.gz files and run debdiff on the .dsc files. attaching the current patch as well.

Revision history for this message
Matthias Klose (doko) wrote :

fixed in 2.5-5ubuntu8

Changed in python2.5:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.