forked from mirrors/org-mode
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:
parent
ac8e3fb8d1
commit
4f82a58e8c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue