diff options
author | Skip Montanaro <skip@pobox.com> | 2007-08-12 11:44:53 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2007-08-12 11:44:53 (GMT) |
commit | 46fc337395753e5b927f6dcccc549c54550b197e (patch) | |
tree | 36c450714b34d4ee7f5ae1d1490d4a1ecac254e8 /Python/import.c | |
parent | 447e7c398158323af7757def0cf715fabfc707fa (diff) | |
download | cpython-46fc337395753e5b927f6dcccc549c54550b197e.zip cpython-46fc337395753e5b927f6dcccc549c54550b197e.tar.gz cpython-46fc337395753e5b927f6dcccc549c54550b197e.tar.bz2 |
PyErr_Warn is deprecated in 2.5 - goes away for 3.0
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/import.c b/Python/import.c index bb40b68..7ac9e2a 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1320,8 +1320,8 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf, sprintf(warnstr, "Not importing directory " "'%.*s': missing __init__.py", MAXPATHLEN, buf); - if (PyErr_Warn(PyExc_ImportWarning, - warnstr)) { + if (PyErr_WarnEx(PyExc_ImportWarning, + warnstr, 1)) { return NULL; } } @@ -1339,8 +1339,8 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf, sprintf(warnstr, "Not importing directory " "'%.*s': missing __init__.py", MAXPATHLEN, buf); - if (PyErr_Warn(PyExc_ImportWarning, - warnstr)) { + if (PyErr_WarnEx(PyExc_ImportWarning, + warnstr, 1)) { return NULL; } } |