[Zope3-dev] Re: Why is the testrunner running with the --profile
option ?
Chris Withers
chris at simplistix.co.uk
Thu Mar 1 05:45:01 EST 2007
Michael Haubenwallner wrote:
> Here is the patch that made it break:
> +--- Lib/hotshot/stats.py~ 2001-10-15 22:18:53.000000000 +0000
> ++++ Lib/hotshot/stats.py 2006-04-21 18:39:17.691461512 +0000
> +@@ -1,7 +1,14 @@
> + """Statistics analyzer for HotShot."""
> +
> +-import profile
> +-import pstats
> ++try:
> ++ import profile
> ++ import pstats
> ++except ImportError, msg:
> ++ import sys
> ++ sys.stderr.write('ImportError: %s\n' % str(msg))
> ++ sys.stderr.write('please install the python%s-profiler package\n'
> ++ % sys.version[:3])
> ++ sys.exit(1)
> +
> + import hotshot.log
Wow, that's pretty evil.
Who's the appropriate Ubuntu person to take this up with?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope3-dev
mailing list