summaryrefslogtreecommitdiff
path: root/Lib/sre_parse.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-01-11 08:44:25 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2013-01-11 08:44:25 +0200
commitee46b6c5c485025a61b34a27b6235242f16b8686 (patch)
tree5eeacb8179afcc97b0f318ef74a0b0ebba5c32ef /Lib/sre_parse.py
parent2645936e278e0f034701db2c3378af1da589e628 (diff)
parentadfbb8e8ec7c7db027d403a443ca9c00347b987a (diff)
downloadcpython-git-ee46b6c5c485025a61b34a27b6235242f16b8686.tar.gz
#13899: merge with 3.3.
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 6411475ac2..1298d48e6d 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]