diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2019-06-17 17:23:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 17:23:28 -0400 |
commit | 8fac1221097aaf6ac37ed9ea727ee7892085e183 (patch) | |
tree | f7bc6495e7f255dca462d07dcadaccffa5c74ba2 /Lib/idlelib/run.py | |
parent | 5bff3c86ab77e9d831b3cd19b45654c7eef22931 (diff) | |
download | cpython-git-8fac1221097aaf6ac37ed9ea727ee7892085e183.tar.gz |
bpo-37321: Edit IDLE subprocess connection error messages. (#14170)
Mainly, add a doc reference to message in pyshell.
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 4075deec51..6b3928b7bf 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(): |