]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(py-shell): cope with make-comint instead of make-shell
authorBarry Warsaw <barry@python.org>
Wed, 5 Jul 1995 22:06:50 +0000 (22:06 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 5 Jul 1995 22:06:50 +0000 (22:06 +0000)
Misc/python-mode.el

index 3c338d3baec05a7fd2c9f74f2df5ec308f2c6522..0b6383b32f1d9ad27e3e983d52785ca81f036689 100644 (file)
@@ -563,7 +563,8 @@ filter."
     (progn
       (require 'shell)
       (switch-to-buffer-other-window
-       (make-shell "Python" py-python-command))))
+       (apply (if (boundp 'make-shell) 'make-shell 'make-comint)
+             "Python" py-python-command nil))))
   (make-local-variable 'shell-prompt-pattern)
   (setq shell-prompt-pattern "^>>> \\|^\\.\\.\\. ")
   (set-process-filter (get-buffer-process (current-buffer))