]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-32989: IDLE - remove unneeded parameter (GH-18138)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 Jan 2020 05:12:58 +0000 (21:12 -0800)
committerGitHub <noreply@github.com>
Thu, 23 Jan 2020 05:12:58 +0000 (21:12 -0800)
IDLE does not pass a non-default _synchre in any of its calls to
pyparse.find_good_parse_start.
(cherry picked from commit f9e07e116c32b6dc4561d0bdeb452ccde13b0e7c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/NEWS.txt
Lib/idlelib/pyparse.py

index 379e8c102d948b29dd11d2bec6bb300d165d111a..f3c3cbad5a98f7f0e2784973e36b7b3f6cb6f92f 100644 (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.
index 9fa201089607110f33214d453b1a48c9af39455e..d34872b4396e1e2abdc399de1a9e91e76ceadd35 100644 (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