summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-12-05 03:28:00 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-12-05 03:28:00 (GMT)
commit6c92d76abc730ca7a77da3c7a8627192f7ac3add (patch)
treeeb9204ebcf1f3c2640e292c0d04c3ea7ef98e061
parentf3fa9460dee3a11f862bd43fb7e4a70e994363e6 (diff)
downloadcpython-6c92d76abc730ca7a77da3c7a8627192f7ac3add.zip
cpython-6c92d76abc730ca7a77da3c7a8627192f7ac3add.tar.gz
cpython-6c92d76abc730ca7a77da3c7a8627192f7ac3add.tar.bz2
Removed deprecated method from pstats.
-rw-r--r--Doc/lib/libprofile.tex8
-rw-r--r--Lib/pstats.py4
-rw-r--r--Misc/NEWS2
3 files changed, 2 insertions, 12 deletions
diff --git a/Doc/lib/libprofile.tex b/Doc/lib/libprofile.tex
index 10cff84..1f87632 100644
--- a/Doc/lib/libprofile.tex
+++ b/Doc/lib/libprofile.tex
@@ -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}}
diff --git a/Lib/pstats.py b/Lib/pstats.py
index 5979a61..98f351f 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -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
diff --git a/Misc/NEWS b/Misc/NEWS
index 63c89d2..707429b 100644
--- 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