瀏覽代碼

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
Dan Davison 14 年之前
父節點
當前提交
4f82a58e8c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lisp/ob-python.el

+ 2 - 2
lisp/ob-python.el

@@ -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