Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 766a16e

Browse files
committed
Fix test_re failure under Windows.
1 parent 463badf commit 766a16e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Modules/sre.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@
1414
#include "sre_constants.h"
1515

1616
/* size of a code word (must be unsigned short or larger, and
17-
large enough to hold a Py_UNICODE character) */
18-
#ifdef Py_UNICODE_WIDE
17+
large enough to hold a UCS4 character) */
1918
#define SRE_CODE Py_UCS4
20-
#else
21-
#define SRE_CODE unsigned short
22-
#endif
2319

2420
typedef struct {
2521
PyObject_VAR_HEAD

0 commit comments

Comments
 (0)