diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-03-22 04:08:44 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-03-22 04:08:44 (GMT) |
commit | ab68a3dc6fbf0dd9e1737516aa9bf75485842cde (patch) | |
tree | c9e5416f71c99c3e03df9d5452855b14b76c0c0c /Lib/hotshot | |
parent | 6415667fe20b90685f85948e980215d44b4696ac (diff) | |
download | cpython-ab68a3dc6fbf0dd9e1737516aa9bf75485842cde.zip cpython-ab68a3dc6fbf0dd9e1737516aa9bf75485842cde.tar.gz cpython-ab68a3dc6fbf0dd9e1737516aa9bf75485842cde.tar.bz2 |
Added warning for the removal of 'hotshot' in Py3k.
Diffstat (limited to 'Lib/hotshot')
-rw-r--r-- | Lib/hotshot/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/hotshot/__init__.py b/Lib/hotshot/__init__.py index b9f7866..1556ab3 100644 --- a/Lib/hotshot/__init__.py +++ b/Lib/hotshot/__init__.py @@ -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): |