Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 39373:40585fb387bb legacy-trunk
On Windows, make PyErr_Warn an exported function again.
| author | Thomas Heller <theller@ctypes.org> |
|---|---|
| date | Fri, 04 Aug 2006 18:17:40 +0000 |
| parents | 7dc5f3ede4cd |
| children | 6ba402b60041 |
comparison
equal
deleted
inserted
replaced
| 39372:0238166f07b7 | 39373:40585fb387bb |
|---|---|
| 662 /* PyErr_Warn is only for backwards compatability and will be removed. | 662 /* PyErr_Warn is only for backwards compatability and will be removed. |
| 663 Use PyErr_WarnEx instead. */ | 663 Use PyErr_WarnEx instead. */ |
| 664 | 664 |
| 665 #undef PyErr_Warn | 665 #undef PyErr_Warn |
| 666 | 666 |
| 667 int | 667 PyAPI_FUNC(int) |
| 668 PyErr_Warn(PyObject *category, char *message) | 668 PyErr_Warn(PyObject *category, char *message) |
| 669 { | 669 { |
| 670 return PyErr_WarnEx(category, message, 1); | 670 return PyErr_WarnEx(category, message, 1); |
| 671 } | 671 } |
| 672 | 672 |
