Commit 5d50adee authored by Benjamin Peterson's avatar Benjamin Peterson

StringIO.StringIO -> io.StringIO (closes #17168)

parent 33182807
...@@ -364,9 +364,9 @@ The :mod:`test.support` module defines the following functions: ...@@ -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::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment