summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/replace.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-02-03 20:44:11 (GMT)
committerGitHub <noreply@github.com>2022-02-03 20:44:11 (GMT)
commit63523e7b2a631f28134b25a8063d50e08c741db6 (patch)
tree75be0e3279d412d5b8ee90440453669257ca3137 /Lib/idlelib/replace.py
parentff6948b1286c854ee77dfc0b23b9d828b36873e4 (diff)
downloadcpython-63523e7b2a631f28134b25a8063d50e08c741db6.zip
cpython-63523e7b2a631f28134b25a8063d50e08c741db6.tar.gz
cpython-63523e7b2a631f28134b25a8063d50e08c741db6.tar.bz2
bpo-45975: IDLE - Remove extraneous parens (GH-31107)
mistakenly included in 3 files in previous PR and backported both to 3.10 and 3.9. (cherry picked from commit 916d0d822c79933f4c420f7a36f16f3eb788646b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
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()