mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Partial py3k-ification of Doc/library/: convert has_key references into either 'k in d' or __contains__; normalize raise statements; convert print statements into print function calls.
This commit is contained in:
parent
2ac0121305
commit
c79461b164
31 changed files with 80 additions and 86 deletions
|
@ -307,7 +307,7 @@ The :mod:`test.test_support` module defines the following functions:
|
|||
Example use::
|
||||
|
||||
with captured_stdout() as s:
|
||||
print "hello"
|
||||
print("hello")
|
||||
assert s.getvalue() == "hello"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue