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/structmember.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/structmember.c')
-rw-r--r-- | Python/structmember.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/structmember.c b/Python/structmember.c index e0014c4..3eb7218 100644 --- a/Python/structmember.c +++ b/Python/structmember.c @@ -90,10 +90,10 @@ PyMember_GetOne(const char *addr, PyMemberDef *l) return v; } -#define WARN(msg) \ - do { \ - if (PyErr_Warn(PyExc_RuntimeWarning, msg) < 0) \ - return -1; \ +#define WARN(msg) \ + do { \ + if (PyErr_WarnEx(PyExc_RuntimeWarning, msg, 1) < 0) \ + return -1; \ } while (0) int |