diff options
| author | Brett Cannon <brett@python.org> | 2011-07-17 19:25:50 -0700 |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2011-07-17 19:25:50 -0700 |
| commit | 7f1db03cb657164af5e341d43552682607e6c68c (patch) | |
| tree | 345609de916e57b1559fcb7110c8925e9a108ec2 /Doc | |
| parent | 471239a1458855de653c1986ab17453b509944c9 (diff) | |
| download | cpython-7f1db03cb657164af5e341d43552682607e6c68c.tar.gz | |
Add Misc/NEWS entry and relevant doc change for issue 10271.
Diffstat (limited to 'Doc')
| -rw-r--r-- | Doc/library/warnings.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index 8af19a282e..8387f5a15f 100644 --- a/Doc/library/warnings.rst +++ b/Doc/library/warnings.rst @@ -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*. |
