summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-06-23 02:45:07 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-06-23 02:45:07 (GMT)
commit008651c56ecd15e4677f0acde9c285cff1f2904c (patch)
tree85a2ea4fca8d7a2bd39c1b71bc495394f4315ec7
parentf595a127b82ba34ab0b65979ab28bc77491ba00a (diff)
downloadcpython-008651c56ecd15e4677f0acde9c285cff1f2904c.zip
cpython-008651c56ecd15e4677f0acde9c285cff1f2904c.tar.gz
cpython-008651c56ecd15e4677f0acde9c285cff1f2904c.tar.bz2
Display the name not the group itself
-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 662e49a..0a361ab 100644
--- a/Lib/sre_parse.py
+++ b/Lib/sre_parse.py
@@ -621,7 +621,7 @@ def _parse(source, state):
if isname(condname):
condgroup = state.groupdict.get(condname)
if condgroup is None:
- msg = "unknown group name: {0!r}".format(condgroup)
+ msg = "unknown group name: {0!r}".format(condname)
raise error(msg)
else:
try: