mirror of https://github.com/python/cpython
StringIO.StringIO -> io.StringIO (closes #17168)
This commit is contained in:
parent
33182807f8
commit
5d50adee50
|
@ -364,9 +364,9 @@ The :mod:`test.support` module defines the following functions:
|
||||||
|
|
||||||
.. function:: captured_stdout()
|
.. function:: captured_stdout()
|
||||||
|
|
||||||
A context manager that runs the :keyword:`with` statement body using
|
A context manager that runs the :keyword:`with` statement body using a
|
||||||
a :class:`StringIO.StringIO` object as sys.stdout. That object can be
|
:class:`io.StringIO` object as sys.stdout. That object can be retrieved
|
||||||
retrieved using the ``as`` clause of the :keyword:`with` statement.
|
using the ``as`` clause of the :keyword:`with` statement.
|
||||||
|
|
||||||
Example use::
|
Example use::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue