summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorLiu Hui <liuhui1610@gmail.com>2025-02-18 17:52:36 +0800
committerStefan Kangas <stefankangas@gmail.com>2025-02-18 20:04:17 +0100
commitdb8af88222bbf06948622d2b4fc4d27b73350b83 (patch)
tree293a3aa6d9223b00c057168189d1f9f439d4d8b2 /lisp
parenta75f4449fa2aceab54f28c5ef46f82225376c2a4 (diff)
downloademacs-db8af88222bbf06948622d2b4fc4d27b73350b83.tar.gz
emacs-db8af88222bbf06948622d2b4fc4d27b73350b83.tar.bz2
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')
-rw-r--r--lisp/progmodes/python.el1
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."
(let* ((virtualenv (when python-shell-virtualenv-root
(directory-file-name python-shell-virtualenv-root)))
(res python-shell-process-environment))
+ (push "PYTHON_BASIC_REPL=1" res)
(when python-shell-unbuffered
(push "PYTHONUNBUFFERED=1" res))
(when python-shell-extra-pythonpaths