commit | 31e18291c59270a4c84360e7ba725b229a47c7e1 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Fri May 11 19:20:17 2001 +0000 |
committer | Fred Drake <fdrake@acm.org> | Fri May 11 19:20:17 2001 +0000 |
tree | 325fd2d1a899e88f413edf0f2141b0ae016f4d55 | |
parent | 652553192ef7377909bdf9cc479625f99e5b6e88 [diff] [blame] |
Clean up a bare except where we only expect to catch pcre.error.
diff --git a/Lib/pre.py b/Lib/pre.py index 357e0a6..1665660 100644 --- a/Lib/pre.py +++ b/Lib/pre.py
@@ -364,7 +364,7 @@ # See if repl contains group references try: repl = pcre_expand(_Dummy, repl) - except: + except error: m = MatchObject(self, source, 0, end, []) repl = lambda m, repl=repl, expand=pcre_expand: expand(m, repl) else: