diff options
| author | Liu Hui | 2025-02-18 17:52:36 +0800 |
|---|---|---|
| committer | Stefan Kangas | 2025-02-18 20:04:17 +0100 |
| commit | db8af88222bbf06948622d2b4fc4d27b73350b83 (patch) | |
| tree | 293a3aa6d9223b00c057168189d1f9f439d4d8b2 /lisp/progmodes/python.el | |
| parent | a75f4449fa2aceab54f28c5ef46f82225376c2a4 (diff) | |
| download | emacs-db8af88222bbf06948622d2b4fc4d27b73350b83.tar.gz emacs-db8af88222bbf06948622d2b4fc4d27b73350b83.zip | |
Disable PyREPL in Python shell
The new default REPL (PyREPL) in Python 3.13 is incompatible
with Python shell and displays a warning message when reverting
to the old basic REPL.
* lisp/progmodes/python.el
(python-shell--calculate-process-environment): Use the basic
REPL. (Bug#76205)
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 2dc0441bd47..460862578b6 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2930,6 +2930,7 @@ virtualenv related vars." | |||
| 2930 | (let* ((virtualenv (when python-shell-virtualenv-root | 2930 | (let* ((virtualenv (when python-shell-virtualenv-root |
| 2931 | (directory-file-name python-shell-virtualenv-root))) | 2931 | (directory-file-name python-shell-virtualenv-root))) |
| 2932 | (res python-shell-process-environment)) | 2932 | (res python-shell-process-environment)) |
| 2933 | (push "PYTHON_BASIC_REPL=1" res) | ||
| 2933 | (when python-shell-unbuffered | 2934 | (when python-shell-unbuffered |
| 2934 | (push "PYTHONUNBUFFERED=1" res)) | 2935 | (push "PYTHONUNBUFFERED=1" res)) |
| 2935 | (when python-shell-extra-pythonpaths | 2936 | (when python-shell-extra-pythonpaths |