diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-05 05:32:07 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-05 05:32:07 (GMT) |
commit | 8a232cc385343c17d9f615f0aff49fc378bdebae (patch) | |
tree | 35dbd69774e9a32275293638dcfaeb322dc8790b /Misc | |
parent | 9ae080ee5acad3c6207db75843cf1a27f868c540 (diff) | |
download | cpython-8a232cc385343c17d9f615f0aff49fc378bdebae.zip cpython-8a232cc385343c17d9f615f0aff49fc378bdebae.tar.gz cpython-8a232cc385343c17d9f615f0aff49fc378bdebae.tar.bz2 |
Add a DeprecationWarning for when warnings.showwarning() is set to a function
that lacks support for the new 'line' argument.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -42,7 +42,9 @@ Extension Modules machinery in such places as the parser where use of pure Python code is not possible. Both the ``showarning()`` and ``formatwarning()`` gain an optional 'line' argument which is not called by default for - backwards-compatibility reasons. + backwards-compatibility reasons. Setting ``warnings.showwarning()`` to + an implementation that lacks support for the ``line`` argument will raise a + DeprecationWarning. Library ------- |