]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix awkward sentence in signal docs (GH-91508)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 20 Apr 2022 01:40:28 +0000 (18:40 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Apr 2022 01:40:28 +0000 (18:40 -0700)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 326ae71f1d93c12100150baa1173ea7ce7a96ea0)

Co-authored-by: AJ Jordan <alex@strugee.net>
Doc/library/signal.rst

index faea9d42a3fbdbe4a89590875806b919c93f9fc1..1a419f42d04fb736ab0d1fc58cce4a7a153c7088 100644 (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: