summaryrefslogtreecommitdiffstats
path: root/Lib/sre_parse.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-01-11 06:43:53 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-01-11 06:43:53 (GMT)
commitadfbb8e8ec7c7db027d403a443ca9c00347b987a (patch)
treed9655554e24391ec86a18d791640b395187cc45c /Lib/sre_parse.py
parentdc1fa80b6c289f8c9136b00334d49e13096426c8 (diff)
parentfe8e6e741492c496837a48fc04c5c776c8779b32 (diff)
downloadcpython-adfbb8e8ec7c7db027d403a443ca9c00347b987a.zip
cpython-adfbb8e8ec7c7db027d403a443ca9c00347b987a.tar.gz
cpython-adfbb8e8ec7c7db027d403a443ca9c00347b987a.tar.bz2
#13899: merge with 3.2.
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r--Lib/sre_parse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py
index 6411475..1298d48 100644
--- a/Lib/sre_parse.py
+++ b/Lib/sre_parse.py
@@ -245,7 +245,7 @@ def _class_escape(source, escape):
if code:
return code
code = CATEGORIES.get(escape)
- if code:
+ if code and code[0] == IN:
return code
try:
c = escape[1:2]