mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #23277: Remove unused imports in tests.
This commit is contained in:
parent
597d15afe4
commit
e437a10d15
79 changed files with 23 additions and 117 deletions
|
@ -1132,7 +1132,6 @@ def captured_stdout(encoding='utf-8'):
|
|||
"""A variation on support.captured_stdout() which gives a text stream
|
||||
having a `buffer` attribute.
|
||||
"""
|
||||
import io
|
||||
orig_stdout = sys.stdout
|
||||
sys.stdout = io.TextIOWrapper(io.BytesIO(), encoding=encoding)
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue