mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Convert a lot of print statements to print functions in docstrings,
documentation, and unused/rarely used functions.
This commit is contained in:
parent
8321f97891
commit
752abd0d3c
20 changed files with 53 additions and 50 deletions
|
@ -481,7 +481,7 @@ def captured_output(stream_name):
|
|||
Example use (with 'stream_name=stdout')::
|
||||
|
||||
with captured_stdout() as s:
|
||||
print "hello"
|
||||
print("hello")
|
||||
assert s.getvalue() == "hello"
|
||||
"""
|
||||
import io
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue