summaryrefslogtreecommitdiff
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2021-09-09 21:04:13 +0300
committerEli Zaretskii <eliz@gnu.org>2021-09-09 21:04:13 +0300
commitceb60225bacc7650b5e52032c0c33b9d67f9a6d7 (patch)
tree8e108a26d6eee6ca39688658eda92ad0e2e85ceb /lisp/progmodes/python.el
parentd92db04a9de4f917a16b8cf1e6f0072d1bf697d5 (diff)
downloademacs-ceb60225bacc7650b5e52032c0c33b9d67f9a6d7.tar.gz
emacs-ceb60225bacc7650b5e52032c0c33b9d67f9a6d7.tar.bz2
emacs-ceb60225bacc7650b5e52032c0c33b9d67f9a6d7.zip
; * lisp/progmodes/python.el (python-shell-send-string): Fix last change.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el2
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)