org-babel-python: Silent bug fix.

The code worked because the unintended extra parentheses didn't cause problems.
This commit is contained in:
Dan Davison 2009-11-06 21:27:06 -05:00 committed by Eric Schulte
parent 6875d4d8e3
commit 3ec02a953d
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ last statement in BODY, as elisp."
(mapconcat
(lambda (line) (format "\t%s" line))
(butlast lines) "\n")
(format "\n\treturn %s" (last lines))))
(format "\n\treturn %s" (car (last lines)))))
tmp-file))
;; (message "buffer=%s" (buffer-string)) ;; debugging
(shell-command-on-region (point-min) (point-max) "python"))