Kaydet (Commit) bebd2063 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Fix for issue #16800: Use buffered write to handle EINTR.

...@@ -174,8 +174,8 @@ def _get_default_tempdir(): ...@@ -174,8 +174,8 @@ def _get_default_tempdir():
fd = _os.open(filename, _bin_openflags, 0o600) fd = _os.open(filename, _bin_openflags, 0o600)
try: try:
try: try:
fp = _io.open(fd, 'wb', buffering=0, closefd=False) with _io.open(fd, 'wb', closefd=False) as fp:
fp.write(b'blat') fp.write(b'blat')
finally: finally:
_os.close(fd) _os.close(fd)
finally: finally:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment