From: Tim Peters Date: Mon, 8 Oct 2001 06:28:18 +0000 (+0000) Subject: Put the deprecated .ignore() method back where it was. X-Git-Tag: v2.2.1c1~1405 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=281084f7989a34d662a1a49746bc00ddd4029372;p=python Put the deprecated .ignore() method back where it was. --- diff --git a/Lib/pstats.py b/Lib/pstats.py index 85aa0a3cdd..f74bd15ade 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -414,6 +414,10 @@ class Stats: print f8(ct/cc), print func_std_string(func) + def ignore(self): + # Deprecated since 1.5.1 -- see the docs. + pass # has no return value, so use at end of line :-) + class TupleComp: """This class provides a generic function for comparing any two tuples. Each instance records a list of tuple-indices (from most significant @@ -435,10 +439,6 @@ class TupleComp: return direction return 0 - def ignore(self): - # Deprecated since 1.5.1 -- see the docs. - pass # has no return value, so use at end of line :-) - #************************************************************************** # func_name is a triple (file:string, line:int, name:string)