[Python-checkins] cpython: Fix test_re failure under Windows.
antoine.pitrou
python-checkins at python.org
Sat Jun 23 14:21:11 CEST 2012
http://hg.python.org/cpython/rev/c67b7e0c818a
changeset: 77626:c67b7e0c818a
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Jun 23 14:17:39 2012 +0200
summary:
Fix test_re failure under Windows.
files:
Modules/sre.h | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/Modules/sre.h b/Modules/sre.h
--- a/Modules/sre.h
+++ b/Modules/sre.h
@@ -14,12 +14,8 @@
#include "sre_constants.h"
/* size of a code word (must be unsigned short or larger, and
- large enough to hold a Py_UNICODE character) */
-#ifdef Py_UNICODE_WIDE
+ large enough to hold a UCS4 character) */
#define SRE_CODE Py_UCS4
-#else
-#define SRE_CODE unsigned short
-#endif
typedef struct {
PyObject_VAR_HEAD
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list