mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Fix some py3k warnings in the standard library.
This commit is contained in:
parent
2a4ab81633
commit
1f3b4e12e8
9 changed files with 45 additions and 40 deletions
|
@ -29,7 +29,7 @@ def _show_warning(message, category, filename, lineno, file=None, line=None):
|
|||
file.write(formatwarning(message, category, filename, lineno, line))
|
||||
except IOError:
|
||||
pass # the file (probably stderr) is invalid - this warning gets lost.
|
||||
# Keep a worrking version around in case the deprecation of the old API is
|
||||
# Keep a working version around in case the deprecation of the old API is
|
||||
# triggered.
|
||||
showwarning = _show_warning
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue