Skip to content

Commit 85477af

Browse files
committed
Remove backwards compatibility stuff from profile/cProfile.
1 parent 395ed24 commit 85477af

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

Lib/cProfile.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ def runctx(statement, globals, locals, filename=None):
5656
result = prof.print_stats()
5757
return result
5858

59-
# Backwards compatibility.
60-
def help():
61-
print("Documentation for the profile/cProfile modules can be found ")
62-
print("in the Python Library Reference, section 'The Python Profiler'.")
63-
6459
# ____________________________________________________________
6560

6661
class Profile(_lsprof.Profiler):

Lib/profile.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ def runctx(statement, globals, locals, filename=None):
9292
else:
9393
return prof.print_stats()
9494

95-
# Backwards compatibility.
96-
def help():
97-
print("Documentation for the profile module can be found ")
98-
print("in the Python Library Reference, section 'The Python Profiler'.")
99-
10095
if os.name == "mac":
10196
import MacOS
10297
def _get_time_mac(timer=MacOS.GetTicks):
@@ -588,8 +583,6 @@ def f(m, f1=f1):
588583
return mean
589584

590585
#****************************************************************************
591-
def Stats(*args):
592-
print('Report generating functions are in the "pstats" module\a')
593586

594587
def main():
595588
usage = "profile.py [-o output_file_path] [-s sort] scriptfile [arg] ..."

0 commit comments

Comments
 (0)