bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line by csabella · Pull Request #11307 · python/cpython
#4143 for issue 31858 fixed some uses of the shell prompt and removed setting context_use_ps1 in pyshell, but not in editor. That partial removal was a mistake since the attribute was still used in hyperparser (and some tests). #11346 for issue 34055 reversed the removal. This PR removes both settings of 'context_use_ps1' and replaces all uses with 'prompt_last_line, which is only non-empty in Shell.