8000 gh-122273: Support PyREPL history in Windows by devdanzin · Pull Request #122274 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-122273: Support PyREPL history in Windows #122274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Only import _pyrepl.readline as readline if real readline wasn't impo…
…rted.
  • Loading branch information
devdanzin committed Oct 12, 2024
commit 746099ba9215f9aafd9ec5b5c4b4c5906b047497
3 changes: 2 additions & 1 deletion Lib/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,8 @@ def register_readline():
original_path = sys.path
sys.path = [p for p in original_path if p != '']
try:
import _pyrepl.readline as readline
if not readline:
import _pyrepl.readline as readline
from _pyrepl.main import CAN_USE_PYREPL
if real_readline:
import _pyrepl.unix_console
Expand Down
Loading
0