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.
(cherry picked from commit f9e07e116c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Miss Islington (bot) 2020-01-22 21:13:41 -08:00 committed by GitHub
parent 3b7618809d
commit 545fc51d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,8 @@ Released on 2019-12-16?
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.

View File

@ -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