diff options
author | Cheryl Sabella <cheryl.sabella@gmail.com> | 2018-02-24 02:35:27 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2018-02-24 02:35:27 (GMT) |
commit | c29c03a34a9f3c82704b66f323ce5ea9dc89c8af (patch) | |
tree | 7a9f2a94999b02b642e5b78de55c6197d1f2cd21 /Lib/idlelib/editor.py | |
parent | 11a1493bc4198f1def5e572049485779cf54dc57 (diff) | |
download | cpython-c29c03a34a9f3c82704b66f323ce5ea9dc89c8af.zip cpython-c29c03a34a9f3c82704b66f323ce5ea9dc89c8af.tar.gz cpython-c29c03a34a9f3c82704b66f323ce5ea9dc89c8af.tar.bz2 |
bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)
Adjust tests and user modules to match.
Diffstat (limited to 'Lib/idlelib/editor.py')
-rw-r--r-- | Lib/idlelib/editor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py index b51c45c..ab9c7e6 100644 --- a/Lib/idlelib/editor.py +++ b/Lib/idlelib/editor.py @@ -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() |