Fix awkward sentence in signal docs (GH-91508)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 326ae71f1d)

Co-authored-by: AJ Jordan <alex@strugee.net>
This commit is contained in:
Miss Islington (bot) 2022-04-19 18:40:28 -07:00 committed by GitHub
parent 6cf86fc9c1
commit 3fa9191cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -676,10 +676,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: