diff options
| author | Glenn Morris | 2019-04-17 09:32:40 -0700 |
|---|---|---|
| committer | Glenn Morris | 2019-04-17 09:32:40 -0700 |
| commit | 0797897f34467272b150eba54aa3bbff19e92aa1 (patch) | |
| tree | de30b455898572def032c92a57955ebc36d2b496 /lisp/progmodes/python.el | |
| parent | 41d9004e1cf50aa18720b52c6228b06e35ca96f5 (diff) | |
| parent | a1c53d4294550380de76d6a6c4e29e9e8f6f9133 (diff) | |
| download | emacs-0797897f34467272b150eba54aa3bbff19e92aa1.tar.gz emacs-0797897f34467272b150eba54aa3bbff19e92aa1.zip | |
Merge from origin/emacs-26
a1c53d4 (origin/emacs-26) * admin/admin.el (make-manuals-dist--1): Up...
d0f745f Document some compilation-mode faces
23ccba0 Mention the assignment form in "Copyright Assignment"
0f5568e Fix confusing wording in the user manual
70ec392 Fix the MSDOS build when running under CWSDPMI
7a608fc * lisp/progmodes/python.el: Be more careful about temp file r...
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 |