Backport commit 2e19e1163 from Emacs
* lisp/ob-lua.el (org-babel-lua-evaluate-session): * lisp/ob-python.el (org-babel-python-initiate-session-by-key): (org-babel-python-evaluate-session): Don't use obsolete 'sleep-for' argument.
This commit is contained in:
parent
53d3fcfbe9
commit
5e9a60aaae
|
@ -326,7 +326,7 @@ last statement in BODY, as elisp."
|
|||
If RESULT-TYPE equals `output' then return standard output as a
|
||||
string. If RESULT-TYPE equals `value' then return the value of the
|
||||
last statement in BODY, as elisp."
|
||||
(let* ((send-wait (lambda () (comint-send-input nil t) (sleep-for 0 5)))
|
||||
(let* ((send-wait (lambda () (comint-send-input nil t) (sleep-for 0.005)))
|
||||
(dump-last-value
|
||||
(lambda
|
||||
(tmp-file pp)
|
||||
|
|
|
@ -235,7 +235,7 @@ then create. Return the initialized session."
|
|||
;; multiple prompts during initialization.
|
||||
(with-current-buffer py-buffer
|
||||
(while (not org-babel-python--initialized)
|
||||
(sleep-for 0 10)))
|
||||
(sleep-for 0.01)))
|
||||
(org-babel-comint-wait-for-output py-buffer))
|
||||
(setq org-babel-python-buffers
|
||||
(cons (cons session py-buffer)
|
||||
|
@ -403,7 +403,7 @@ last statement in BODY, as elisp."
|
|||
(body (org-babel-python-format-session-value
|
||||
tmp-src-file tmp-results-file result-params)))
|
||||
(org-babel-python--send-string session body)
|
||||
(sleep-for 0 10)
|
||||
(sleep-for 0.01)
|
||||
(org-babel-eval-read-file tmp-results-file)))))))
|
||||
(org-babel-result-cond result-params
|
||||
results
|
||||
|
|
Loading…
Reference in New Issue