bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)

Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
This commit is contained in:
Cheryl Sabella 2019-06-02 14:56:47 -04:00 committed by Terry Jan Reedy
parent 5df4025f42
commit 6bdc4dee01
8 changed files with 13 additions and 13 deletions

View file

@ -35,7 +35,7 @@ class HyperParser:
return int(float(index))
lno = index2line(text.index(index))
if not editwin.context_use_ps1:
if not editwin.prompt_last_line:
for context in editwin.num_context_lines:
startat = max(lno - context, 1)
startatindex = repr(startat) + ".0"