diff options
| author | Bastien Guerry | 2012-04-26 19:30:04 +0200 |
|---|---|---|
| committer | Bastien Guerry | 2012-04-26 19:30:04 +0200 |
| commit | 2f885dcacb7fdc09700705e15b7741988d2ad70f (patch) | |
| tree | 732aebeaaa8f884d077ec812e0ecb31285ab6845 /lisp/org/ob-python.el | |
| parent | 2a12997ca97ac8cf0e44657e01c53ab51de497d0 (diff) | |
| download | emacs-2f885dcacb7fdc09700705e15b7741988d2ad70f.tar.gz emacs-2f885dcacb7fdc09700705e15b7741988d2ad70f.zip | |
Sync with Org git commit 374c56b.
Diffstat (limited to 'lisp/org/ob-python.el')
| -rw-r--r-- | lisp/org/ob-python.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org/ob-python.el b/lisp/org/ob-python.el index 0dc744aaa73..348248f35cf 100644 --- a/lisp/org/ob-python.el +++ b/lisp/org/ob-python.el | |||
| @@ -64,7 +64,7 @@ This function is called by `org-babel-execute-src-block'." | |||
| 64 | (preamble (cdr (assoc :preamble params))) | 64 | (preamble (cdr (assoc :preamble params))) |
| 65 | (full-body | 65 | (full-body |
| 66 | (org-babel-expand-body:generic | 66 | (org-babel-expand-body:generic |
| 67 | (concat body (if return-val (format "return %s" return-val) "")) | 67 | (concat body (if return-val (format "\nreturn %s" return-val) "")) |
| 68 | params (org-babel-variable-assignments:python params))) | 68 | params (org-babel-variable-assignments:python params))) |
| 69 | (result (org-babel-python-evaluate | 69 | (result (org-babel-python-evaluate |
| 70 | session full-body result-type result-params preamble))) | 70 | session full-body result-type result-params preamble))) |