mirror of
https://github.com/python/cpython.git
synced 2025-08-24 02:35:59 +00:00
bpo-37321: Edit IDLE subprocess connection error messages. (#14170)
Mainly, add a doc reference to message in pyshell.
This commit is contained in:
parent
5bff3c86ab
commit
8fac122109
4 changed files with 16 additions and 9 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue