summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-07-28 17:22:36 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-07-28 17:22:36 (GMT)
commit1f268285ff810681612c8f7c91c1faeb70535f52 (patch)
tree8531e2c66af998125d53694c82626e8a1a204364 /Modules
parent6bd13fbbc8b4917023d124d6523685d456a8e92a (diff)
downloadcpython-1f268285ff810681612c8f7c91c1faeb70535f52.zip
cpython-1f268285ff810681612c8f7c91c1faeb70535f52.tar.gz
cpython-1f268285ff810681612c8f7c91c1faeb70535f52.tar.bz2
Issue #6561: '\d' in a regular expression should match only Unicode
character category [Nd], not [No].
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 45b92f3..596fd19 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -168,7 +168,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))