aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 6f169123b95..e73b2a8488c 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2245,7 +2245,11 @@ detection and just returns nil."
2245 ;; `condition-case' and displaying the error message to 2245 ;; `condition-case' and displaying the error message to
2246 ;; the user in the no-prompts warning. 2246 ;; the user in the no-prompts warning.
2247 (ignore-errors 2247 (ignore-errors
2248 (let ((code-file (python-shell--save-temp-file code))) 2248 (let ((code-file
2249 ;; Python 2.x on Windows does not handle
2250 ;; carriage returns in unbuffered mode.
2251 (let ((inhibit-eol-conversion (getenv "PYTHONUNBUFFERED")))
2252 (python-shell--save-temp-file code))))
2249 ;; Use `process-file' as it is remote-host friendly. 2253 ;; Use `process-file' as it is remote-host friendly.
2250 (process-file 2254 (process-file
2251 interpreter 2255 interpreter