File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -327,10 +327,10 @@ Functions and classes provided:
327
327
.. function :: redirect_stdout(new_target)
328
328
329
329
Context manager for temporarily redirecting :data: `sys.stdout ` to
330
- another file or file-like object.
330
+ another :term: ` file object ` .
331
331
332
332
This tool adds flexibility to existing functions or classes whose output
333
- is hardwired to stdout.
333
+ is hardwired to :data: ` sys. stdout` .
334
334
335
335
For example, the output of :func: `help ` normally is sent to *sys.stdout *.
336
336
You can capture that output in a string by redirecting the output to an
@@ -366,8 +366,8 @@ Functions and classes provided:
366
366
367
367
.. function :: redirect_stderr(new_target)
368
368
369
- Similar to :func: `~contextlib.redirect_stdout ` but redirecting
370
- :data: `sys.stderr ` to another file or file-like object.
369
+ Similar to :func: `~contextlib.redirect_stdout ` but redirecting the global
370
+ :data: `sys.stderr ` to another :term: ` file object ` .
371
371
372
372
This context manager is :ref: `reentrant <reentrant-cms >`.
373
373
You can’t perform that action at this time.
0 commit comments