summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-06-22 19:45:07 -0700
committerRaymond Hettinger <python@rcn.com>2014-06-22 19:45:07 -0700
commite4ab36c7d849c5ff807928558170a87d91d6f216 (patch)
treeba9388c3b93e0e70c0bee1d2a5be05492aff4b45
parent6ffff855314db727bedd84ff065bd8e4bb7ed03b (diff)
downloadcpython-e4ab36c7d849c5ff807928558170a87d91d6f216.tar.gz
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 662e49a187..0a361abc70 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: