]> git.eshelyaron.com Git - emacs.git/commitdiff
; Minor cleanup of python-interpreter variable
authorStefan Kangas <stefankangas@gmail.com>
Sat, 5 Oct 2024 09:48:36 +0000 (11:48 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 6 Oct 2024 06:50:12 +0000 (08:50 +0200)
* lisp/progmodes/python.el (python-interpreter)
(python-shell-interpreter): Simplify definition.

(cherry picked from commit 84c66625e5ef268ec958a04eb61ba8f2beb2ea02)

lisp/progmodes/python.el

index 923bb9b8396ff42d81ee4cb2d628bc46b30b4a88..450eac372c3f4679521623f2efb37c5f01edfc54 100644 (file)
 
 (defcustom python-interpreter
   (cond ((executable-find "python") "python")
-        ((executable-find "python3") "python3")
         (t "python3"))
   "Python interpreter for noninteractive use.
 Some Python interpreters also require changes to
@@ -2725,7 +2724,6 @@ position, else returns nil."
 
 (defcustom python-shell-interpreter
   (cond ((executable-find "python") "python")
-        ((executable-find "python3") "python3")
         (t "python3"))
   "Python interpreter for interactive use.