mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
On Windows, make PyErr_Warn an exported function again.
This commit is contained in:
parent
16183631ed
commit
74d36f0d95
2 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,9 @@ What's New in Python 2.5 release candidate 1?
|
||||||
Core and builtins
|
Core and builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- On Windows, the PyErr_Warn function is now exported from
|
||||||
|
the Python dll again.
|
||||||
|
|
||||||
- Bug #1191458: tracing over for loops now produces a line event
|
- Bug #1191458: tracing over for loops now produces a line event
|
||||||
on each iteration. Fixing this problem required changing the .pyc
|
on each iteration. Fixing this problem required changing the .pyc
|
||||||
magic number. This means that .pyc files generated before 2.5c1
|
magic number. This means that .pyc files generated before 2.5c1
|
||||||
|
|
|
@ -664,7 +664,7 @@ PyErr_WarnEx(PyObject *category, const char *message, Py_ssize_t stack_level)
|
||||||
|
|
||||||
#undef PyErr_Warn
|
#undef PyErr_Warn
|
||||||
|
|
||||||
int
|
PyAPI_FUNC(int)
|
||||||
PyErr_Warn(PyObject *category, char *message)
|
PyErr_Warn(PyObject *category, char *message)
|
||||||
{
|
{
|
||||||
return PyErr_WarnEx(category, message, 1);
|
return PyErr_WarnEx(category, message, 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue