mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
GH-110786: suppress BrokenPipeError on the sysconfig CLI (#110791)
This commit is contained in:
parent
b883cad06b
commit
6478dea3c8
@ -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…
Reference in New Issue
Block a user