]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/progmodes/python.el (python-shell-send-string): Fix last change.
authorEli Zaretskii <eliz@gnu.org>
Thu, 9 Sep 2021 18:04:13 +0000 (21:04 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 9 Sep 2021 18:04:13 +0000 (21:04 +0300)
lisp/progmodes/python.el

index 3fc2700663f287d987035c3176cc5deef3730099..e342ce7f5631e31468b7a0e6696856fea4aeb9c4 100644 (file)
@@ -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)