summaryrefslogtreecommitdiffstats
path: root/Lib/profile.py
diff options
context:
space:
mode:
authorJohannes Gijsbers <jlg@dds.nl>2005-01-10 09:07:22 (GMT)
committerJohannes Gijsbers <jlg@dds.nl>2005-01-10 09:07:22 (GMT)
commitc0b194a77082f2db4b5689a27e73f07fa046fa79 (patch)
tree80fd1b25ef8ba011308d1b2788f3559bd8f35795 /Lib/profile.py
parent77ead87f30867443d18531812a0bbd83db1f6b0d (diff)
downloadcpython-c0b194a77082f2db4b5689a27e73f07fa046fa79.zip
cpython-c0b194a77082f2db4b5689a27e73f07fa046fa79.tar.gz
cpython-c0b194a77082f2db4b5689a27e73f07fa046fa79.tar.bz2
Bug #489256: remove out of date and out of place profile.doc, and let
profile.help() point at the library reference instead of profile.doc.
Diffstat (limited to 'Lib/profile.py')
-rwxr-xr-xLib/profile.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/Lib/profile.py b/Lib/profile.py
index 9d7e284..4b5eb4d 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -4,8 +4,6 @@
#
# Based on prior profile module by Sjoerd Mullender...
# which was hacked somewhat by: Guido van Rossum
-#
-# See profile.doc for more information
"""Class for profiling Python code."""
@@ -94,18 +92,10 @@ def runctx(statement, globals, locals, filename=None):
else:
return prof.print_stats()
-# print help
+# Backwards compatibility.
def help():
- for dirname in sys.path:
- fullname = os.path.join(dirname, 'profile.doc')
- if os.path.exists(fullname):
- sts = os.system('${PAGER-more} ' + fullname)
- if sts: print '*** Pager exit status:', sts
- break
- else:
- print 'Sorry, can\'t find the help file "profile.doc"',
- print 'along the Python search path.'
-
+ print "Documentation for the profile module can be found "
+ print "in the Python Library Reference, section 'The Python Profiler'."
if os.name == "mac":
import MacOS