diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-17 21:50:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 21:50:48 (GMT) |
commit | 336cf399546f3362033f9d2b475feae050373ef8 (patch) | |
tree | 7b215ac2cc33df69e274b2aa3c4f477ddf9bc25c /Lib/idlelib/run.py | |
parent | 0f31a2d3e85d3644de30626a00439ab3c7424105 (diff) | |
download | cpython-336cf399546f3362033f9d2b475feae050373ef8.zip cpython-336cf399546f3362033f9d2b475feae050373ef8.tar.gz cpython-336cf399546f3362033f9d2b475feae050373ef8.tar.bz2 |
bpo-37321: Edit IDLE subprocess connection error messages. (GH-14170)
Mainly, add a doc reference to message in pyshell.
(cherry picked from commit 8fac1221097aaf6ac37ed9ea727ee7892085e183)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/run.py')
-rw-r--r-- | Lib/idlelib/run.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 4075dee..6b3928b 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -199,11 +199,13 @@ def show_socket_error(err, address): root = tkinter.Tk() fix_scaling(root) root.withdraw() - msg = f"IDLE's subprocess can't connect to {address[0]}:{address[1]}.\n"\ - f"Fatal OSError #{err.errno}: {err.strerror}.\n"\ - f"See the 'Startup failure' section of the IDLE doc, online at\n"\ - f"https://docs.python.org/3/library/idle.html#startup-failure" - showerror("IDLE Subprocess Error", msg, parent=root) + showerror( + "Subprocess Connection Error", + f"IDLE's subprocess can't connect to {address[0]}:{address[1]}.\n" + f"Fatal OSError #{err.errno}: {err.strerror}.\n" + "See the 'Startup failure' section of the IDLE doc, online at\n" + "https://docs.python.org/3/library/idle.html#startup-failure", + parent=root) root.destroy() def print_exception(): |