mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
GH-110786: suppress BrokenPipeError on the sysconfig CLI (#110791)
This commit is contained in:
parent
b883cad06b
commit
6478dea3c8
2 changed files with 6 additions and 1 deletions
|
|
@ -242,4 +242,7 @@ def _main():
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
_main()
|
||||
try:
|
||||
_main()
|
||||
except BrokenPipeError:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
:mod:`sysconfig`'s CLI now ignores :exc:`BrokenPipeError`, making it exit
|
||||
normally if its output is being piped and the pipe closes.
|
||||
Loading…
Add table
Add a link
Reference in a new issue