summaryrefslogtreecommitdiff
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2007-08-12 11:44:53 +0000
committerSkip Montanaro <skip@pobox.com>2007-08-12 11:44:53 +0000
commitc490c586e8e96c5968deabe2c6b99bb0d1f0cee6 (patch)
treef982553bf4e21cf533abd8c95ad9900dba529d44 /Python/modsupport.c
parentaeaf1c2394768bb93116d25fea2052fff3ee3e94 (diff)
downloadcpython-c490c586e8e96c5968deabe2c6b99bb0d1f0cee6.tar.gz
PyErr_Warn is deprecated in 2.5 - goes away for 3.0
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r--Python/modsupport.c2
1 files changed, 1 insertions, 1 deletions
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.