Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 46573:aef3501d8e77 legacy-trunk
Use PyErr_WarnPy3k throughout
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 27 Apr 2008 03:01:45 +0000 |
| parents | 84bb7701efba |
| children | 7670005da8c5 |
line wrap: on
line diff
--- a/Python/ceval.c Sun Apr 27 02:28:02 2008 +0000 +++ b/Python/ceval.c Sun Apr 27 03:01:45 2008 +0000 @@ -3164,9 +3164,9 @@ assert(PyExceptionClass_Check(type)); if (Py_Py3kWarningFlag && PyClass_Check(type)) { - if (PyErr_Warn(PyExc_DeprecationWarning, + if (PyErr_WarnEx(PyExc_DeprecationWarning, "exceptions must derive from BaseException " - "in 3.x") == -1) + "in 3.x", 1) == -1) goto raise_error; }
