From: Alexandre Vassalotti Date: Sat, 22 Mar 2008 04:08:44 +0000 (+0000) Subject: Added warning for the removal of 'hotshot' in Py3k. X-Git-Tag: v2.6a2~174 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab68a3dc6fbf0dd9e1737516aa9bf75485842cde;p=thirdparty%2FPython%2Fcpython.git Added warning for the removal of 'hotshot' in Py3k. --- diff --git a/Lib/hotshot/__init__.py b/Lib/hotshot/__init__.py index b9f7866e4edd..1556ab3f2ba6 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):