[Python-checkins] r51112 - in python/trunk: Misc/NEWS Python/errors.c

thomas.heller python-checkins at python.org
Fri Aug 4 20:17:41 CEST 2006


Author: thomas.heller
Date: Fri Aug  4 20:17:40 2006
New Revision: 51112

Modified:
   python/trunk/Misc/NEWS
   python/trunk/Python/errors.c
Log:
On Windows, make PyErr_Warn an exported function again.

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Fri Aug  4 20:17:40 2006
@@ -12,6 +12,9 @@
 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
   on each iteration.  Fixing this problem required changing the .pyc
   magic number.  This means that .pyc files generated before 2.5c1

Modified: python/trunk/Python/errors.c
==============================================================================
--- python/trunk/Python/errors.c	(original)
+++ python/trunk/Python/errors.c	Fri Aug  4 20:17:40 2006
@@ -664,7 +664,7 @@
 
 #undef PyErr_Warn
 
-int
+PyAPI_FUNC(int)
 PyErr_Warn(PyObject *category, char *message)
 {
 	return PyErr_WarnEx(category, message, 1);


More information about the Python-checkins mailing list