Fix awkward sentence in signal docs (#91508)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
AJ Jordan 2022-04-19 21:20:25 -04:00 committed by GitHub
parent b6d5e3c3c9
commit 326ae71f1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -711,10 +711,11 @@ case, wrap your entry point to catch this exception as follows::
if __name__ == '__main__':
main()
Do not set :const:`SIGPIPE`'s disposition to :const:`SIG_DFL`
in order to avoid :exc:`BrokenPipeError`. Doing that would cause
your program to exit unexpectedly also whenever any socket connection
is interrupted while your program is still writing to it.
Do not set :const:`SIGPIPE`'s disposition to :const:`SIG_DFL` in
order to avoid :exc:`BrokenPipeError`. Doing that would cause
your program to exit unexpectedly whenever any socket
connection is interrupted while your program is still writing to
it.
.. _handlers-and-exceptions: