From b457ddaff2094a0ec02176184beb74f600178ed4 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 2 May 2008 02:25:09 +0000 Subject: 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. --- Python/_warnings.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'Python') diff --git a/Python/_warnings.c b/Python/_warnings.c index 88afade15b..8f575ca539 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); -- cgit v1.2.1