[Python-checkins] CVS: python/dist/src/Lib sre_parse.py,1.50,1.51

Fredrik Lundh effbot@users.sourceforge.net
2001年12月09日 08:13:17 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv15973/Lib
Modified Files:
	sre_parse.py 
Log Message:
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)
Index: sre_parse.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre_parse.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -d -r1.50 -r1.51
*** sre_parse.py	2001年11月03日 19:35:42	1.50
--- sre_parse.py	2001年12月09日 16:13:15	1.51
***************
*** 84,89 ****
 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)
 self.groupdict[name] = gid
 self.open.append(gid)
--- 84,89 ----
 ogid = self.groupdict.get(name, None)
 if ogid is not None:
! 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)

AltStyle によって変換されたページ (->オリジナル) /