Mercurial > cpython-lru_cache-weakref
diff Python/modsupport.c @ 42560:0fcc18aba385
PyErr_Warn is deprecated in 2.5 - goes away for 3.0
| author | Skip Montanaro <skip@pobox.com> |
|---|---|
| date | Sun, 12 Aug 2007 11:44:53 +0000 |
| parents | d0719406b2c6 |
| children | 0d462d789b18 |
line wrap: on
line diff
--- a/Python/modsupport.c Sun Aug 12 07:11:25 2007 +0000 +++ b/Python/modsupport.c Sun Aug 12 11:44:53 2007 +0000 @@ -42,7 +42,7 @@ 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.
