]> granicus.if.org Git - python/commit
Temporary fix for Bug #114821.
authorGuido van Rossum <guido@python.org>
Tue, 19 Sep 2000 20:51:17 +0000 (20:51 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 19 Sep 2000 20:51:17 +0000 (20:51 +0000)
commitf8d071332a485ede280675a55e3319e136826dd0
tree7a7cb427d79d51d62556e5188bc92c91f6d78622
parent0eeba5b24b0cf5297421c7bd5dbc38aff774dc5f
Temporary fix for Bug #114821.

The cause was that the replace code necessarily used a PCRE internal
function to to template expansion.

The fix changes the code to use an SRE internal if SRE is used, and a
PCRE internal if SRE is used; in a way that should work with 1.5.2.

The solution can be sped up tremendously under the assumption that the
choice between sre and pre is not changed during the execution of the
program; especially replace-all will be slow.

But I'll leave that to someone else.
Tools/idle/ReplaceDialog.py