Skip to content

Conversation

@skirpichev
Copy link
Contributor

@skirpichev skirpichev commented Jul 2, 2024

This prevents writing incorrect history (empty).

Fixed by @domdfcoding.

This prevents writing incorrect history (empty).
@skirpichev
Copy link
Contributor Author

CC @pablogsal

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM if you remove the comment.

@skirpichev skirpichev changed the title gh-121245: Amend 38cfa9288 (correct import) gh-121245: Amend d611c4c8e9 (correct import) Jul 2, 2024
@skirpichev
Copy link
Contributor Author

skirpichev commented Jul 2, 2024

BTW, test in write_history() looks asymmetrical wrt reading the history file. Maybe it should be moved up to fill some variable like using_base_repl?

That wasn't included, I did just minimal changes.

Edit: title was corrected, now its referenced commit in the main, not on 3.13.

@ambv ambv enabled auto-merge (squash) July 2, 2024 09:33
@ambv ambv added the needs backport to 3.13 bugs and security fixes label Jul 2, 2024
@ambv ambv merged commit 7a807c3 into python:main Jul 2, 2024
@miss-islington-app
Copy link

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

hroncok added a commit to fedora-python/cpython that referenced this pull request Jul 2, 2024
@skirpichev skirpichev deleted the fix-repl-121245 branch July 2, 2024 09:45
@ambv ambv added needs backport to 3.13 bugs and security fixes and removed needs backport to 3.13 bugs and security fixes labels Jul 2, 2024
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 2, 2024
(cherry picked from commit 7a807c3)

Co-authored-by: Sergey B Kirpichev <[email protected]>
Co-authored-by: Miro Hrončok <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Jul 2, 2024

GH-121261 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jul 2, 2024
lysnikolaou pushed a commit that referenced this pull request Jul 2, 2024
(cherry picked from commit 7a807c3)

Co-authored-by: Sergey B Kirpichev <[email protected]>
Co-authored-by: Miro Hrončok <[email protected]>
Akasurde pushed a commit to Akasurde/cpython that referenced this pull request Jul 3, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
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.

4 participants