Add Misc/NEWS entry and relevant doc change for issue 10271.

This commit is contained in:
Brett Cannon 2011-07-17 19:25:50 -07:00
parent 52a7d98273
commit e52181c05a
2 changed files with 3 additions and 2 deletions

View file

@ -339,8 +339,7 @@ Available Functions
Write a warning to a file. The default implementation calls
``formatwarning(message, category, filename, lineno, line)`` and writes the
resulting string to *file*, which defaults to ``sys.stderr``. You may replace
this function with an alternative implementation by assigning to
``warnings.showwarning``.
this function with any callable by assigning to ``warnings.showwarning``.
*line* is a line of source code to be included in the warning
message; if *line* is not supplied, :func:`showwarning` will
try to read the line specified by *filename* and *lineno*.