summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina <fgallina@gnu.org>2015-08-21 23:26:44 -0300
committerFabián Ezequiel Gallina <fgallina@gnu.org>2015-08-21 23:26:44 -0300
commitcf42b9fe8dade8da417f49bf0d13b85614eec076 (patch)
tree04530877369bd4fd4acbd7f8d92a9cc08923c1d6
parente2a5e3f87aba493623734dcf9b872e10c6077496 (diff)
downloademacs-cf42b9fe8dade8da417f49bf0d13b85614eec076.tar.gz
emacs-cf42b9fe8dade8da417f49bf0d13b85614eec076.tar.bz2
emacs-cf42b9fe8dade8da417f49bf0d13b85614eec076.zip
; python.el: Fix previous commit for Emacs<24.3 compatibility
-rw-r--r--lisp/progmodes/python.el4
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'."
(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