mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
use Py_CHARMASK
This commit is contained in:
parent
760dd1031a
commit
7f7f274839
5 changed files with 27 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue