Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 281084f

Browse files
committed
Put the deprecated .ignore() method back where it was.
1 parent 7d01685 commit 281084f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/pstats.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ def print_line(self, func): # hack : should print percentages
414414
print f8(ct/cc),
415415
print func_std_string(func)
416416

417+
def ignore(self):
418+
# Deprecated since 1.5.1 -- see the docs.
419+
pass # has no return value, so use at end of line :-)
420+
417421
class TupleComp:
418422
"""This class provides a generic function for comparing any two tuples.
419423
Each instance records a list of tuple-indices (from most significant
@@ -435,10 +439,6 @@ def compare (self, left, right):
435439
return direction
436440
return 0
437441

438-
def ignore(self):
439-
# Deprecated since 1.5.1 -- see the docs.
440-
pass # has no return value, so use at end of line :-)
441-
442442
#**************************************************************************
443443
# func_name is a triple (file:string, line:int, name:string)
444444

0 commit comments

Comments
 (0)