diff options
Diffstat (limited to 'Modules/regexmodule.c')
-rw-r--r-- | Modules/regexmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index b9f75a0..9b40ab5 100644 --- a/Modules/regexmodule.c +++ b/Modules/regexmodule.c @@ -35,7 +35,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "modsupport.h" #include "regexpr.h" -#include "ctype.h" +#include <ctype.h> static object *RegexError; /* Exception */ @@ -433,7 +433,7 @@ symcomp(pattern, gdict) ++o; /* eat the '>' */ break; } - if (!isalnum(*o) && *o != '_') { + if (!isalnum(Py_CHARMASK(*o)) && *o != '_') { o = backtrack; break; } |