diff options
Diffstat (limited to 'lisp/org/ob-python.el')
| -rw-r--r-- | lisp/org/ob-python.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/org/ob-python.el b/lisp/org/ob-python.el index 3f1bbf1cb3d..9f1234bac52 100644 --- a/lisp/org/ob-python.el +++ b/lisp/org/ob-python.el | |||
| @@ -265,10 +265,10 @@ string. If RESULT-TYPE equals `value' then return the value of the | |||
| 265 | last statement in BODY, as elisp." | 265 | last statement in BODY, as elisp." |
| 266 | (let ((raw | 266 | (let ((raw |
| 267 | (pcase result-type | 267 | (pcase result-type |
| 268 | ('output (org-babel-eval org-babel-python-command | 268 | (`output (org-babel-eval org-babel-python-command |
| 269 | (concat (if preamble (concat preamble "\n")) | 269 | (concat (if preamble (concat preamble "\n")) |
| 270 | body))) | 270 | body))) |
| 271 | ('value (let ((tmp-file (org-babel-temp-file "python-"))) | 271 | (`value (let ((tmp-file (org-babel-temp-file "python-"))) |
| 272 | (org-babel-eval | 272 | (org-babel-eval |
| 273 | org-babel-python-command | 273 | org-babel-python-command |
| 274 | (concat | 274 | (concat |
| @@ -314,7 +314,7 @@ last statement in BODY, as elisp." | |||
| 314 | (funcall send-wait))) | 314 | (funcall send-wait))) |
| 315 | (results | 315 | (results |
| 316 | (pcase result-type | 316 | (pcase result-type |
| 317 | ('output | 317 | (`output |
| 318 | (let ((body (if (string-match-p ".\n+." body) ; Multiline | 318 | (let ((body (if (string-match-p ".\n+." body) ; Multiline |
| 319 | (let ((tmp-src-file (org-babel-temp-file | 319 | (let ((tmp-src-file (org-babel-temp-file |
| 320 | "python-"))) | 320 | "python-"))) |
| @@ -332,7 +332,7 @@ last statement in BODY, as elisp." | |||
| 332 | (insert org-babel-python-eoe-indicator) | 332 | (insert org-babel-python-eoe-indicator) |
| 333 | (funcall send-wait)) | 333 | (funcall send-wait)) |
| 334 | 2) "\n"))) | 334 | 2) "\n"))) |
| 335 | ('value | 335 | (`value |
| 336 | (let ((tmp-file (org-babel-temp-file "python-"))) | 336 | (let ((tmp-file (org-babel-temp-file "python-"))) |
| 337 | (org-babel-comint-with-output | 337 | (org-babel-comint-with-output |
| 338 | (session org-babel-python-eoe-indicator nil body) | 338 | (session org-babel-python-eoe-indicator nil body) |