summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-02 02:25:09 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-02 02:25:09 (GMT)
commitb457ddaff2094a0ec02176184beb74f600178ed4 (patch)
tree643f39fbda9291cb860135c85ca41b0482d22305 /Python
parent0c65fe606eb1fa0d6d51d8421ae6b83b81a0cc5e (diff)
downloadcpython-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 'Python')
-rw-r--r--Python/_warnings.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 88afade..8f575ca 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -382,9 +382,6 @@ warn_explicit(PyObject *category, PyObject *message,
res = PyObject_CallFunctionObjArgs(show_fxn, message, category,
filename, lineno_obj,
- Py_None,
- sourceline ?
- sourceline: Py_None,
NULL);
Py_DECREF(show_fxn);
Py_XDECREF(res);