From ceb60225bacc7650b5e52032c0c33b9d67f9a6d7 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 9 Sep 2021 21:04:13 +0300 Subject: [PATCH] ; * lisp/progmodes/python.el (python-shell-send-string): Fix last change. --- lisp/progmodes/python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2