Fix an error message in python.el

* lisp/progmodes/python.el (python-shell-get-process-or-error):
Don't repeat the same key binding twice.  (Bug#25405)
This commit is contained in:
Eli Zaretskii 2017-01-09 17:28:17 +02:00
parent a2a2073933
commit 16fb50db11

View file

@ -2826,8 +2826,7 @@ of `error' with a user-friendly message."
(or (python-shell-get-process)
(if interactivep
(user-error
"Start a Python process first with `%s' or `%s'."
(substitute-command-keys "\\[run-python]")
"Start a Python process first with `M-x run-python' or `%s'."
;; Get the binding.
(key-description
(where-is-internal