emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 984a149: replace `tramp-compat-split-string' (remov


From: Sam Steingold
Subject: [Emacs-diffs] master 984a149: replace `tramp-compat-split-string' (removed) with `split-string'
Date: Fri, 15 Jan 2016 16:53:16 +0000

branch: master
commit 984a14904658da42ca9dea50a811a901ddc56e60
Author: Sam Steingold <address@hidden>
Commit: Sam Steingold <address@hidden>

    replace `tramp-compat-split-string' (removed) with `split-string'
    
    (python-shell-tramp-refresh-process-environment)
    (python-shell-calculate-pythonpath): use `split-string'
    instead of defunct `tramp-compat-split-string'
---
 lisp/progmodes/python.el |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 4984c99..3bcbf07 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2042,8 +2042,8 @@ virtualenv."
 (defun python-shell-calculate-pythonpath ()
   "Calculate the PYTHONPATH using `python-shell-extra-pythonpaths'."
   (let ((pythonpath
-         (tramp-compat-split-string
-          (or (getenv "PYTHONPATH") "") path-separator)))
+         (split-string
+          (or (getenv "PYTHONPATH") "") path-separator 'omit)))
     (python-shell--add-to-path-with-priority
      pythonpath python-shell-extra-pythonpaths)
     (mapconcat 'identity pythonpath path-separator)))
@@ -2114,7 +2114,7 @@ appends `python-shell-remote-exec-path' instead of 
`exec-path'."
            (md5 tramp-end-of-output)))
        unset vars item)
     (while env
-      (setq item (tramp-compat-split-string (car env) "="))
+      (setq item (split-string (car env) "=" 'omit))
       (setcdr item (mapconcat 'identity (cdr item) "="))
       (if (and (stringp (cdr item)) (not (string-equal (cdr item) "")))
          (push (format "%s %s" (car item) (cdr item)) vars)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]