commit | 46fc337395753e5b927f6dcccc549c54550b197e | [log] [tgz] |
---|---|---|
author | Skip Montanaro <skip@pobox.com> | Sun Aug 12 11:44:53 2007 +0000 |
committer | Skip Montanaro <skip@pobox.com> | Sun Aug 12 11:44:53 2007 +0000 |
tree | 36c450714b34d4ee7f5ae1d1490d4a1ecac254e8 | |
parent | 447e7c398158323af7757def0cf715fabfc707fa [diff] [blame] |
PyErr_Warn is deprecated in 2.5 - goes away for 3.0
diff --git a/Python/modsupport.c b/Python/modsupport.c index d29fe9b..8f25ed2 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c
@@ -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.