babel: python: use eq instead of equal

* ob-python.el (org-babel-python-initiate-session-by-key): use
	eq instead of equal to compare symbols
This commit is contained in:
Dan Davison 2010-08-16 11:08:37 -04:00
parent ac8e3fb8d1
commit 4f82a58e8c
1 changed files with 2 additions and 2 deletions

View File

@ -150,10 +150,10 @@ then create. Return the initialized session."
(let* ((session (if session (intern session) :default))
(python-buffer (org-babel-python-session-buffer session)))
(cond
((and (equal 'python org-babel-python-mode)
((and (eq 'python org-babel-python-mode)
(fboundp 'run-python)) ; python.el
(run-python))
((and (equal 'python-mode org-babel-python-mode)
((and (eq 'python-mode org-babel-python-mode)
(fboundp 'py-shell)) ; python-mode.el
;; `py-shell' creates a buffer whose name is the value of
;; `py-which-bufname' with '*'s at the beginning and end