summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2020-01-23 04:55:07 (GMT)
committerGitHub <noreply@github.com>2020-01-23 04:55:07 (GMT)
commitf9e07e116c32b6dc4561d0bdeb452ccde13b0e7c (patch)
tree72813e939cb0b17c1c833edacafcd3c0d5a24968 /Lib/idlelib
parent2e43b64c94e49f7133b9c26e84c9519935c49063 (diff)
downloadcpython-f9e07e116c32b6dc4561d0bdeb452ccde13b0e7c.zip
cpython-f9e07e116c32b6dc4561d0bdeb452ccde13b0e7c.tar.gz
cpython-f9e07e116c32b6dc4561d0bdeb452ccde13b0e7c.tar.bz2
bpo-32989: IDLE - remove unneeded parameter (GH-18138)
IDLE does not pass a non-default _synchre in any of its calls to pyparse.find_good_parse_start.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/NEWS.txt3
-rw-r--r--Lib/idlelib/pyparse.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index 69bf560..708292e 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -6,7 +6,8 @@ Released on 2020-10-05?
bpo-39050: Make Settings dialog Help button work again.
bpo-32989: Add tests for editor newline_and_indent_event method.
-Remove dead code from pyparse find_good_parse_start method.
+Remove unneeded arguments and dead code from pyparse
+find_good_parse_start method.
bpo-38943: Fix autocomplete windows not always appearing on some
systems. Patch by Johnny Najera.
diff --git a/Lib/idlelib/pyparse.py b/Lib/idlelib/pyparse.py
index 9fa2010..d34872b 100644
--- a/Lib/idlelib/pyparse.py
+++ b/Lib/idlelib/pyparse.py
@@ -133,7 +133,7 @@ class Parser:
self.code = s
self.study_level = 0
- def find_good_parse_start(self, is_char_in_string, _synchre=_synchre):
+ def find_good_parse_start(self, is_char_in_string):
"""
Return index of a good place to begin parsing, as close to the
end of the string as possible. This will be the start of some