]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Removed deprecated method from pstats.
authorRaymond Hettinger <python@rcn.com>
Sun, 5 Dec 2004 03:28:00 +0000 (03:28 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 5 Dec 2004 03:28:00 +0000 (03:28 +0000)
Doc/lib/libprofile.tex
Lib/pstats.py
Misc/NEWS

index 10cff849521a985632dcb73381bcba621d420ac6..1f876326a26182e1fa4166748255115e8a1af688 100644 (file)
@@ -525,14 +525,6 @@ of direction of calls (re: called vs was called by), the arguments and
 ordering are identical to the \method{print_callers()} method.
 \end{methoddesc}
 
-\begin{methoddesc}[Stats]{ignore}{}
-\deprecated{1.5.1}{This is not needed in modern versions of
-Python.\footnote{
-  This was once necessary, when Python would print any unused expression
-  result that was not \code{None}.  The method is still defined for
-  backward compatibility.}}
-\end{methoddesc}
-
 
 \section{Limitations \label{profile-limits}}
 
index 5979a61beaee80aea4eaa38b7c7f9c74586aba67..98f351f9aee86d29b65127f92f1fb0573260e5b9 100644 (file)
@@ -416,10 +416,6 @@ 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
index 63c89d236bdd73580078f85be8d8a66b3317522c..707429b7dd702f5a1b637e0850f737c143963815 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,6 +21,8 @@ Extension Modules
 Library
 -------
 
+- the pstats module no longer uses the deprecated ignore() method.
+
 - the filecmp module no longer uses the deprecated use_statcache argument.
 
 - unittest.TestCase.run() and unittest.TestSuite.run() can now be successfully