mirror of
https://github.com/python/cpython.git
synced 2025-09-29 19:56:59 +00:00
Fixup old, invalid import.
This commit is contained in:
parent
d175b4cda5
commit
7ecf3dcaee
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ def _warn_unhandled_exception():
|
|||
# There are a few catch-all except: statements in this module, for
|
||||
# catching input that's bad in unexpected ways. Warn if any
|
||||
# exceptions are caught there.
|
||||
import warnings, traceback, StringIO
|
||||
import io, warnings, traceback
|
||||
f = io.StringIO()
|
||||
traceback.print_exc(None, f)
|
||||
msg = f.getvalue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue