diff options
author | Barry Warsaw <barry@python.org> | 1995-07-05 22:06:50 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1995-07-05 22:06:50 (GMT) |
commit | 6e98f3350f2ea838a487bde43115923477c74d49 (patch) | |
tree | 09fa81d6aacc2f95f1864a4cc4d7a3e765367e33 | |
parent | f74f63a43f3c4e3d31a0366a2a982e0ded8ef583 (diff) | |
download | cpython-6e98f3350f2ea838a487bde43115923477c74d49.zip cpython-6e98f3350f2ea838a487bde43115923477c74d49.tar.gz cpython-6e98f3350f2ea838a487bde43115923477c74d49.tar.bz2 |
(py-shell): cope with make-comint instead of make-shell
-rw-r--r-- | Misc/python-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 3c338d3..0b6383b 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -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)) |