diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-07-28 20:35:03 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-07-28 20:35:03 (GMT) |
commit | fe67bd91685f89fbf95ee9727ce03d20dea3e9b8 (patch) | |
tree | a05a8cfba86d1994b8e8af49ec5cef9924760008 /Modules | |
parent | 8d31f5413ccbd1857bac21887272f06a84cca619 (diff) | |
download | cpython-fe67bd91685f89fbf95ee9727ce03d20dea3e9b8.zip cpython-fe67bd91685f89fbf95ee9727ce03d20dea3e9b8.tar.gz cpython-fe67bd91685f89fbf95ee9727ce03d20dea3e9b8.tar.bz2 |
Issue #6561: '\d' regular expression should not match characters of
category [No]; only those of category [Nd]. (Backport of r74237
from py3k.)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_sre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index 1aea53b..0d9ee24 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -172,7 +172,7 @@ static unsigned int sre_lower_locale(unsigned int ch) #if defined(HAVE_UNICODE) -#define SRE_UNI_IS_DIGIT(ch) Py_UNICODE_ISDIGIT((Py_UNICODE)(ch)) +#define SRE_UNI_IS_DIGIT(ch) Py_UNICODE_ISDECIMAL((Py_UNICODE)(ch)) #define SRE_UNI_IS_SPACE(ch) Py_UNICODE_ISSPACE((Py_UNICODE)(ch)) #define SRE_UNI_IS_LINEBREAK(ch) Py_UNICODE_ISLINEBREAK((Py_UNICODE)(ch)) #define SRE_UNI_IS_ALNUM(ch) Py_UNICODE_ISALNUM((Py_UNICODE)(ch)) |