mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-32916: IDLE: Change str
to code
in pyparse (GH-5830)
Adjust tests and user modules to match.
This commit is contained in:
parent
11a1493bc4
commit
c29c03a34a
5 changed files with 103 additions and 102 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue