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.el14
1 files changed, 2 insertions, 12 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index ed6bb3189c9..735f25dfa54 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1494,18 +1494,8 @@ inferior python process is updated properly."
1494 (forward-char) 1494 (forward-char)
1495 (delete-region (point-marker) (search-forward "self.")) 1495 (delete-region (point-marker) (search-forward "self."))
1496 (setq input (buffer-substring (point-min) (point-max))))) 1496 (setq input (buffer-substring (point-min) (point-max)))))
1497 (process-send-string 1497 (python-shell-send-and-clear-output
1498 process (format python-eldoc-string-code input)) 1498 (format python-eldoc-string-code input) process))))
1499 (accept-process-output process)
1500 (with-current-buffer (process-buffer process)
1501 (when comint-last-prompt-overlay
1502 (save-excursion
1503 (goto-char comint-last-input-end)
1504 (re-search-forward comint-prompt-regexp
1505 (line-end-position) t)
1506 (buffer-substring-no-properties
1507 (point-marker)
1508 (overlay-start comint-last-prompt-overlay))))))))
1509 (with-current-buffer (process-buffer process) 1499 (with-current-buffer (process-buffer process)
1510 (when comint-last-prompt-overlay 1500 (when comint-last-prompt-overlay
1511 (delete-region comint-last-input-end 1501 (delete-region comint-last-input-end