[Python-checkins] cpython (2.7): Display the name not the group itself

raymond.hettinger python-checkins at python.org
Mon Jun 23 04:45:12 CEST 2014


http://hg.python.org/cpython/rev/b2e5d3a97452
changeset:   91342:b2e5d3a97452
branch:      2.7
user:        Raymond Hettinger <python at rcn.com>
date:        Sun Jun 22 19:45:07 2014 -0700
summary:
  Display the name not the group itself

files:
  Lib/sre_parse.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py
--- a/Lib/sre_parse.py
+++ b/Lib/sre_parse.py
@@ -621,7 +621,7 @@
                     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:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list