]> git.eshelyaron.com Git - emacs.git/commitdiff
python.el: Silence left over warning in last commit
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 4 Feb 2022 18:39:19 +0000 (13:39 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 4 Feb 2022 18:39:19 +0000 (13:39 -0500)
* lisp/progmodes/python.el
(python-shell-calculate-process-environment): Declare
tramp-remote-process-environment before using it.

lisp/progmodes/python.el

index ba8e3e811d4338bb537d93f6ece4ba7bd996019d..d83290fe457bb708c75d4776dacaa86011219872 100644 (file)
@@ -2208,6 +2208,7 @@ virtualenv."
 
 (defun python-shell-calculate-process-environment ()
   (declare (obsolete python-shell--calculate-process-environment "29.1"))
+  (defvar tramp-remote-process-environment)
   (let* ((remote-p (file-remote-p default-directory)))
     (append (python-shell--calculate-process-environment)
             (if remote-p