diff options
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 1 insertions, 1 deletions
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) "<string>"))))) - (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) |