diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 8f7bb7a8b60..3fc2700663f 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -3152,7 +3152,8 @@ t when called interactively." | |||
| 3152 | (python-shell--encode-string string) | 3152 | (python-shell--encode-string string) |
| 3153 | (python-shell--encode-string (or (buffer-file-name) | 3153 | (python-shell--encode-string (or (buffer-file-name) |
| 3154 | "<string>"))))) | 3154 | "<string>"))))) |
| 3155 | (if (<= (string-bytes code) comint-max-line-length) | 3155 | (if (or (null (process-connection-type process)) |
| 3156 | (<= (string-bytes code) comint-max-line-length)) | ||
| 3156 | (comint-send-string process code) | 3157 | (comint-send-string process code) |
| 3157 | (let* ((temp-file-name (with-current-buffer (process-buffer process) | 3158 | (let* ((temp-file-name (with-current-buffer (process-buffer process) |
| 3158 | (python-shell--save-temp-file string))) | 3159 | (python-shell--save-temp-file string))) |