Roger Serwy <roger.se...@gmail.com> added the comment: I don't have the beep problem you describe under Linux using Python 3.2 (r32:88445, Mar 25 2011, 19:56:22). That may be a platform-specific bug.
Here's a patch to use re.escape instead. A minor side effect of using re.escape is that it is not possible to use \n itself in the replace string. It gets escaped as \\n. ---------- Added file: http://bugs.python.org/file23411/patch13052_re.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13052> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com