]> granicus.if.org Git - python/commitdiff
Remove backwards compatibility stuff from profile/cProfile.
authorGeorg Brandl <georg@python.org>
Fri, 4 Sep 2009 08:09:32 +0000 (08:09 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 4 Sep 2009 08:09:32 +0000 (08:09 +0000)
Lib/cProfile.py
Lib/profile.py

index 5d04341d7121115c6eb5941fb0a1ae365e29fe74..bacfef83a7c0256abdab869bfba0dd752e5b632c 100755 (executable)
@@ -56,11 +56,6 @@ def runctx(statement, globals, locals, filename=None):
             result = prof.print_stats()
     return result
 
-# Backwards compatibility.
-def help():
-    print("Documentation for the profile/cProfile modules can be found ")
-    print("in the Python Library Reference, section 'The Python Profiler'.")
-
 # ____________________________________________________________
 
 class Profile(_lsprof.Profiler):
index cdc247911bccbc476c08a28ac27db47fbb579142..5120047a614f7d5da8b28058f9decd0cece6331d 100755 (executable)
@@ -92,11 +92,6 @@ def runctx(statement, globals, locals, filename=None):
     else:
         return prof.print_stats()
 
-# Backwards compatibility.
-def help():
-    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
     def _get_time_mac(timer=MacOS.GetTicks):
@@ -588,8 +583,6 @@ class Profile:
         return mean
 
 #****************************************************************************
-def Stats(*args):
-    print('Report generating functions are in the "pstats" module\a')
 
 def main():
     usage = "profile.py [-o output_file_path] [-s sort] scriptfile [arg] ..."