1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

; python.el: Fix previous commit for Emacs<24.3 compatibility

This commit is contained in:
Fabián Ezequiel Gallina 2015-08-21 23:26:44 -03:00
parent e2a5e3f87a
commit cf42b9fe8d

View file

@ -2101,7 +2101,9 @@ appends `python-shell-remote-exec-path' instead of `exec-path'."
(defun python-shell-tramp-refresh-process-environment (vec env)
"Update VEC's process environment with ENV."
;; Stolen from `tramp-open-connection-setup-interactive-shell'.
(let ((env (append `(,(tramp-get-remote-locale vec))
(let ((env (append (when (fboundp #'tramp-get-remote-locale)
;; Emacs<24.4 compat.
(list (tramp-get-remote-locale vec)))
(copy-sequence env)))
unset vars item)
(while env