Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e98f33

Browse files
committed
(py-shell): cope with make-comint instead of make-shell
1 parent f74f63a commit 6e98f33

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Misc/python-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,8 @@ filter."
563563
(progn
564564
(require 'shell)
565565
(switch-to-buffer-other-window
566-
(make-shell "Python" py-python-command))))
566+
(apply (if (boundp 'make-shell) 'make-shell 'make-comint)
567+
"Python" py-python-command nil))))
567568
(make-local-variable 'shell-prompt-pattern)
568569
(setq shell-prompt-pattern "^>>> \\|^\\.\\.\\. ")
569570
(set-process-filter (get-buffer-process (current-buffer))

0 commit comments

Comments
 (0)