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

Skip to content

Commit f1b72dd

Browse files
committed
Reduced description of the obsolete method Stats.ignore().
1 parent 3217be9 commit f1b72dd

2 files changed

Lines changed: 4 additions & 26 deletions

File tree

Doc/lib/libprofile.tex

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -495,23 +495,12 @@ \subsection{The \module{Stats} Class}
495495
\end{methoddesc}
496496

497497
\begin{methoddesc}{ignore}{}
498-
This method of the \class{Stats} class is used to dispose of the value
499-
returned by earlier methods. All standard methods in this class
500-
return the instance that is being processed, so that the commands can
501-
be strung together. For example:
502-
503-
\begin{verbatim}
504-
pstats.Stats('foofile').strip_dirs().sort_stats('cum') \
505-
.print_stats().ignore()
506-
\end{verbatim}
507-
508-
would perform all the indicated functions, but it would not return
509-
the final reference to the \class{Stats} instance.%
498+
\deprecated{1.5.1}{This is not needed in modern versions of Python.%
510499
\footnote{
511500
This was once necessary, when Python would print any unused expression
512501
result that was not \code{None}. The method is still defined for
513502
backward compatibility.
514-
}
503+
}}
515504
\end{methoddesc}
516505

517506

Doc/libprofile.tex

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -495,23 +495,12 @@ \subsection{The \module{Stats} Class}
495495
\end{methoddesc}
496496

497497
\begin{methoddesc}{ignore}{}
498-
This method of the \class{Stats} class is used to dispose of the value
499-
returned by earlier methods. All standard methods in this class
500-
return the instance that is being processed, so that the commands can
501-
be strung together. For example:
502-
503-
\begin{verbatim}
504-
pstats.Stats('foofile').strip_dirs().sort_stats('cum') \
505-
.print_stats().ignore()
506-
\end{verbatim}
507-
508-
would perform all the indicated functions, but it would not return
509-
the final reference to the \class{Stats} instance.%
498+
\deprecated{1.5.1}{This is not needed in modern versions of Python.%
510499
\footnote{
511500
This was once necessary, when Python would print any unused expression
512501
result that was not \code{None}. The method is still defined for
513502
backward compatibility.
514-
}
503+
}}
515504
\end{methoddesc}
516505

517506

0 commit comments

Comments
 (0)