From 46fc337395753e5b927f6dcccc549c54550b197e Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Sun, 12 Aug 2007 11:44:53 +0000 Subject: PyErr_Warn is deprecated in 2.5 - goes away for 3.0 --- Python/modsupport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/modsupport.c') diff --git a/Python/modsupport.c b/Python/modsupport.c index d29fe9b0a7..8f25ed2e19 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -42,7 +42,7 @@ Py_InitModule4(const char *name, PyMethodDef *methods, const char *doc, api_version_warning, name, PYTHON_API_VERSION, name, module_api_version); - if (PyErr_Warn(PyExc_RuntimeWarning, message)) + if (PyErr_WarnEx(PyExc_RuntimeWarning, message, 1)) return NULL; } /* Make sure name is fully qualified. -- cgit v1.2.1