Skip to content

Conversation

csabella
Copy link
Contributor

@csabella csabella commented Dec 24, 2018

#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.

https://bugs.python.org/issue35610

@terryjreedy terryjreedy changed the title bpo-34055: IDLE: Fix shell smart indent after error bpo-35610: IDLE: Replace .context_use_ps1 with .promt_last_line Dec 29, 2018
@terryjreedy
Copy link
Member

@auvipy When you review, please leave a comment that might help me make a decision. I don't know what mere '[x] Approve' means beyond the CI checks passing.

@terryjreedy terryjreedy changed the title bpo-35610: IDLE: Replace .context_use_ps1 with .promt_last_line bpo-35610: IDLE: Replace .context_use_ps1 with .prompt_last_line Jun 2, 2019
Copy link
Member

@terryjreedy terryjreedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will make the changes requested and add a couple of comments.

@terryjreedy terryjreedy changed the title bpo-35610: IDLE: Replace .context_use_ps1 with .prompt_last_line bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line Jun 2, 2019
Copy link
Member

@terryjreedy terryjreedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified that grepping idlelib recursively for 'context_use_ps1' returns nothing.
Will merge.

@terryjreedy terryjreedy merged commit 6bdc4de into python:master Jun 2, 2019
@terryjreedy terryjreedy added needs backport to 3.7 performance Performance or resource usage labels Jun 2, 2019
@miss-islington
Copy link
Contributor

Thanks @csabella for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@terryjreedy terryjreedy removed the performance Performance or resource usage label Jun 2, 2019
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 2, 2019
…thonGH-11307)

Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
(cherry picked from commit 6bdc4de)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
@bedevere-bot
Copy link

GH-13747 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Jun 2, 2019
…-11307)

Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
(cherry picked from commit 6bdc4de)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
…thonGH-11307)

Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants