bpo-32916: IDLE: Change str to code in pyparse (GH-5830)

Adjust tests and user modules to match.
This commit is contained in:
Cheryl Sabella 2018-02-23 21:35:27 -05:00 committed by Terry Jan Reedy
parent 11a1493bc4
commit c29c03a34a
5 changed files with 103 additions and 102 deletions

View file

@ -1302,7 +1302,7 @@ class EditorWindow(object):
startat = max(lno - context, 1)
startatindex = repr(startat) + ".0"
rawtext = text.get(startatindex, "insert")
y.set_str(rawtext)
y.set_code(rawtext)
bod = y.find_good_parse_start(
self.context_use_ps1,
self._build_char_in_string_func(startatindex))
@ -1316,7 +1316,7 @@ class EditorWindow(object):
else:
startatindex = "1.0"
rawtext = text.get(startatindex, "insert")
y.set_str(rawtext)
y.set_code(rawtext)
y.set_lo(0)
c = y.get_continuation_type()