Skip to content

Commit 74d36f0

Browse files
author
Thomas Heller
committed
On Windows, make PyErr_Warn an exported function again.
1 parent 1618363 commit 74d36f0

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ What's New in Python 2.5 release candidate 1?
1212
Core and builtins
1313
-----------------
1414

15+
- On Windows, the PyErr_Warn function is now exported from
16+
the Python dll again.
17+
1518
- Bug #1191458: tracing over for loops now produces a line event
1619
on each iteration. Fixing this problem required changing the .pyc
1720
magic number. This means that .pyc files generated before 2.5c1

Python/errors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ PyErr_WarnEx(PyObject *category, const char *message, Py_ssize_t stack_level)
664664

665665
#undef PyErr_Warn
666666

667-
int
667+
PyAPI_FUNC(int)
668668
PyErr_Warn(PyObject *category, char *message)
669669
{
670670
return PyErr_WarnEx(category, message, 1);

0 commit comments

Comments
 (0)