diff options
author | Dan Davison <dandavison7@gmail.com> | 2010-12-01 16:54:09 +0000 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2010-12-01 16:55:21 +0000 |
commit | 768774812875b68dbd8b215a9c036597e00fb6d0 (patch) | |
tree | a21fca5dbe53664f5b20ff8c18b0d87055756753 | |
parent | 8e746c9afa0874ea0f84d47bc10551cc58500877 (diff) | |
download | org-mode-768774812875b68dbd8b215a9c036597e00fb6d0.tar.gz |
babel: fix python pretty print bug
* lisp/ob-python.el (org-babel-python-evaluate-session): Change python
module name from 'pp' to 'pprint'
-rw-r--r-- | lisp/ob-python.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-python.el b/lisp/ob-python.el index cf93252..5b28497 100644 --- a/lisp/ob-python.el +++ b/lisp/ob-python.el @@ -229,7 +229,7 @@ last statement in BODY, as elisp." (lambda (statement) (insert statement) (comint-send-input)) (if pp (list - "import pp" + "import pprint" (format "open('%s', 'w').write(pprint.pformat(_))" (org-babel-process-file-name tmp-file 'noquote))) (list (format "open('%s', 'w').write(str(_))" |