diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9c4a0f1bbfb..7d7122acccb 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2101,7 +2101,9 @@ appends `python-shell-remote-exec-path' instead of `exec-path'." | |||
| 2101 | (defun python-shell-tramp-refresh-process-environment (vec env) | 2101 | (defun python-shell-tramp-refresh-process-environment (vec env) |
| 2102 | "Update VEC's process environment with ENV." | 2102 | "Update VEC's process environment with ENV." |
| 2103 | ;; Stolen from `tramp-open-connection-setup-interactive-shell'. | 2103 | ;; Stolen from `tramp-open-connection-setup-interactive-shell'. |
| 2104 | (let ((env (append `(,(tramp-get-remote-locale vec)) | 2104 | (let ((env (append (when (fboundp #'tramp-get-remote-locale) |
| 2105 | ;; Emacs<24.4 compat. | ||
| 2106 | (list (tramp-get-remote-locale vec))) | ||
| 2105 | (copy-sequence env))) | 2107 | (copy-sequence env))) |
| 2106 | unset vars item) | 2108 | unset vars item) |
| 2107 | (while env | 2109 | (while env |