summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/replace.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/replace.py')
-rw-r--r--Lib/idlelib/replace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/replace.py b/Lib/idlelib/replace.py
index ac04ed9..ca83173 100644
--- a/Lib/idlelib/replace.py
+++ b/Lib/idlelib/replace.py
@@ -158,8 +158,8 @@ class ReplaceDialog(SearchDialogBase):
first = last = None
# XXX ought to replace circular instead of top-to-bottom when wrapping
text.undo_block_start()
- while (res := self.engine.search_forward(
- text, prog, line, col, wrap=False, ok=ok)):
+ while res := self.engine.search_forward(
+ text, prog, line, col, wrap=False, ok=ok):
line, m = res
chars = text.get("%d.0" % line, "%d.0" % (line+1))
orig = m.group()