diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-02 02:25:09 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-02 02:25:09 (GMT) |
commit | b457ddaff2094a0ec02176184beb74f600178ed4 (patch) | |
tree | 643f39fbda9291cb860135c85ca41b0482d22305 /Misc | |
parent | 0c65fe606eb1fa0d6d51d8421ae6b83b81a0cc5e (diff) | |
download | cpython-b457ddaff2094a0ec02176184beb74f600178ed4.zip cpython-b457ddaff2094a0ec02176184beb74f600178ed4.tar.gz cpython-b457ddaff2094a0ec02176184beb74f600178ed4.tar.bz2 |
Fix a backwards-compatibility mistake where a new optional argument for
warnings.showwarning() was being used. This broke pre-existing replacements for
the function since they didn't support the extra argument.
Closes issue 2705.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -40,7 +40,9 @@ Extension Modules - Issue #1631171: Re-implement the 'warnings' module in C (the original Python code has been kept as backup). This will allow for using the 'warning's machinery in such places as the parser where use of pure Python code is not - possible. + possible. Both the ``showarning()`` and ``formatwarning()`` gain an + optional 'line' argument which is not called by default for + backwards-compatibility reasons. Library ------- |