]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix awkward sentence in signal docs (#91508)
authorAJ Jordan <alex@strugee.net>
Wed, 20 Apr 2022 01:20:25 +0000 (21:20 -0400)
committerGitHub <noreply@github.com>
Wed, 20 Apr 2022 01:20:25 +0000 (18:20 -0700)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/signal.rst

index c276b52ca4d2025a2de0789f34fdf30e91255aac..fdc9846f6642a70262f15bf0ce719a3460417a51 100644 (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: