[Python-checkins] CVS: python/dist/src/Lib pre.py,1.9,1.10
Fred L. Drake
fdrake@users.sourceforge.net
Fri, 11 May 2001 12:20:19 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv17963
Modified Files:
pre.py
Log Message:
Clean up a bare except where we only expect to catch pcre.error.
Index: pre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pre.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** pre.py 2001/03/10 09:33:14 1.9
--- pre.py 2001/05/11 19:20:17 1.10
***************
*** 365,369 ****
try:
repl = pcre_expand(_Dummy, repl)
! except:
m = MatchObject(self, source, 0, end, [])
repl = lambda m, repl=repl, expand=pcre_expand: expand(m, repl)
--- 365,369 ----
try:
repl = pcre_expand(_Dummy, repl)
! except error:
m = MatchObject(self, source, 0, end, [])
repl = lambda m, repl=repl, expand=pcre_expand: expand(m, repl)