- Fixed typo in multi-line exception example

- Fixed indentation for a verbatim block
This commit is contained in:
Edward Loper 2004-09-27 03:30:44 +00:00
parent 36ee8ce373
commit 456ff91664

View file

@ -1699,10 +1699,10 @@ the synthesized code under the debugger:
\function{script_from_examples()} above. For example, if module \function{script_from_examples()} above. For example, if module
\file{a.py} contains a top-level function \function{f()}, then \file{a.py} contains a top-level function \function{f()}, then
\begin{verbatim} \begin{verbatim}
import a, doctest import a, doctest
print doctest.testsource(a, "a.f") print doctest.testsource(a, "a.f")
\end{verbatim} \end{verbatim}
prints a script version of function \function{f()}'s docstring, prints a script version of function \function{f()}'s docstring,
with doctests converted to code, and the rest placed in comments. with doctests converted to code, and the rest placed in comments.