summaryrefslogtreecommitdiffstats
path: root/Misc/python-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'Misc/python-mode.el')
-rw-r--r--Misc/python-mode.el3
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))