Mercurial > cpython-lru_cache-weakref
diff Python/_warnings.c @ 46622:ea1a9cf735a5 legacy-trunk
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.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Fri, 02 May 2008 02:25:09 +0000 |
| parents | d58ec38e6db1 |
| children | cc66029d2efe |
line wrap: on
line diff
--- a/Python/_warnings.c Thu May 01 18:24:32 2008 +0000 +++ b/Python/_warnings.c Fri May 02 02:25:09 2008 +0000 @@ -382,9 +382,6 @@ res = PyObject_CallFunctionObjArgs(show_fxn, message, category, filename, lineno_obj, - Py_None, - sourceline ? - sourceline: Py_None, NULL); Py_DECREF(show_fxn); Py_XDECREF(res);
