Added warning for the removal of 'hotshot' in Py3k.

This commit is contained in:
Alexandre Vassalotti 2008-03-22 04:08:44 +00:00
parent 6415667fe2
commit ab68a3dc6f
1 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,11 @@
"""High-perfomance logging profiler, mostly written in C."""
import _hotshot
from _hotshot import ProfilerError
from warnings import warnpy3k as _warnpy3k
_warnpy3k("The 'hotshot' module is not supported in 3.x, "
"use the 'profile' module instead.", stacklevel=2)
class Profile:
def __init__(self, logfn, lineevents=0, linetimings=1):