From: Eli Zaretskii Date: Thu, 9 Sep 2021 18:04:13 +0000 (+0300) Subject: ; * lisp/progmodes/python.el (python-shell-send-string): Fix last change. X-Git-Tag: emacs-28.0.90~1090 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ceb60225bacc7650b5e52032c0c33b9d67f9a6d7;p=emacs.git ; * lisp/progmodes/python.el (python-shell-send-string): Fix last change. --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 3fc2700663f..e342ce7f563 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -3152,7 +3152,7 @@ t when called interactively." (python-shell--encode-string string) (python-shell--encode-string (or (buffer-file-name) ""))))) - (if (or (null (process-connection-type process)) + (if (or (null (process-tty-name process)) (<= (string-bytes code) comint-max-line-length)) (comint-send-string process code) (let* ((temp-file-name (with-current-buffer (process-buffer process)