diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2001-12-09 16:13:15 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2001-12-09 16:13:15 (GMT) |
commit | 82b230732fab6dc3b8d945feb38bd99712a501fc (patch) | |
tree | 5a5531657fac37d69ceb8f51648032fa1386ec29 /Lib/sre_parse.py | |
parent | ed69aeedb9031d632c169c8c570777426842dce0 (diff) | |
download | cpython-82b230732fab6dc3b8d945feb38bd99712a501fc.zip cpython-82b230732fab6dc3b8d945feb38bd99712a501fc.tar.gz cpython-82b230732fab6dc3b8d945feb38bd99712a501fc.tar.bz2 |
bug #133283, #477728, #483789, #490573
backed out of broken minimal repeat patch from July
also fixed a couple of minor potential resource leaks in pattern_subx
(Guido had already fixed the big one)
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r-- | Lib/sre_parse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py index 7313a1f..f6b53de 100644 --- a/Lib/sre_parse.py +++ b/Lib/sre_parse.py @@ -83,8 +83,8 @@ class Pattern: if name: ogid = self.groupdict.get(name, None) if ogid is not None: - raise error, ("redefinition of group name %s as group %d; " + - "was group %d") % (`name`, gid, ogid) + raise error, ("redefinition of group name %s as group %d; " + "was group %d" % (repr(name), gid, ogid)) self.groupdict[name] = gid self.open.append(gid) return gid |