summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-05 05:32:07 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-05 05:32:07 (GMT)
commit8a232cc385343c17d9f615f0aff49fc378bdebae (patch)
tree35dbd69774e9a32275293638dcfaeb322dc8790b /Misc
parent9ae080ee5acad3c6207db75843cf1a27f868c540 (diff)
downloadcpython-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/NEWS4
1 files changed, 3 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 8515238..9c3743f 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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
-------