summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-07-28 20:35:03 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-07-28 20:35:03 (GMT)
commitfe67bd91685f89fbf95ee9727ce03d20dea3e9b8 (patch)
treea05a8cfba86d1994b8e8af49ec5cef9924760008 /Modules
parent8d31f5413ccbd1857bac21887272f06a84cca619 (diff)
downloadcpython-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.c2
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))