diff options
author | Guido van Rossum <guido@python.org> | 1995-02-10 17:01:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-10 17:01:56 (GMT) |
commit | 7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a (patch) | |
tree | 5d67635bbdfd2fe5bb0b055d532c371716c59d91 /Modules/regexmodule.c | |
parent | 760dd1031a8db93dc53ae3eb836bcc44a36918a1 (diff) | |
download | cpython-7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a.zip cpython-7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a.tar.gz cpython-7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a.tar.bz2 |
use Py_CHARMASK
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; } |