diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 5193501f716..eb3e31c4b77 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2303,15 +2303,16 @@ detection and just returns nil." | |||
| 2303 | ;; carriage returns in unbuffered mode. | 2303 | ;; carriage returns in unbuffered mode. |
| 2304 | (let ((inhibit-eol-conversion (getenv "PYTHONUNBUFFERED"))) | 2304 | (let ((inhibit-eol-conversion (getenv "PYTHONUNBUFFERED"))) |
| 2305 | (python-shell--save-temp-file code)))) | 2305 | (python-shell--save-temp-file code)))) |
| 2306 | ;; Use `process-file' as it is remote-host friendly. | 2306 | (unwind-protect |
| 2307 | (process-file | 2307 | ;; Use `process-file' as it is remote-host friendly. |
| 2308 | interpreter | 2308 | (process-file |
| 2309 | code-file | 2309 | interpreter |
| 2310 | '(t nil) | 2310 | code-file |
| 2311 | nil | 2311 | '(t nil) |
| 2312 | interpreter-arg) | 2312 | nil |
| 2313 | ;; Try to cleanup | 2313 | interpreter-arg) |
| 2314 | (delete-file code-file))) | 2314 | ;; Try to cleanup |
| 2315 | (delete-file code-file)))) | ||
| 2315 | (buffer-string))) | 2316 | (buffer-string))) |
| 2316 | (prompts | 2317 | (prompts |
| 2317 | (catch 'prompts | 2318 | (catch 'prompts |