Revert "bpo-17852: Maintain a list of BufferedWriter objects. Flush … · python/cpython@db56423 · GitHub
Skip to content

Commit db56423

Browse files
authored
Revert "bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. (#1908)" (#3337)
This reverts commit e38d12e.
1 parent e38d12e commit db56423

5 files changed

Lines changed: 1 addition & 75 deletions

File tree

Lib/_pyio.py

Lines changed: 0 additions & 24 deletions

Misc/NEWS.d/next/Core and Builtins/2017-09-04-12-46-25.bpo-17852.OxAtCg.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

Modules/_io/_iomodule.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,6 @@ PyInit__io(void)
766766
!(_PyIO_empty_bytes = PyBytes_FromStringAndSize(NULL, 0)))
767767
goto fail;
768768

769-
_Py_PyAtExit(_PyIO_atexit_flush);
770-
771769
state->initialized = 1;
772770

773771
return m;

Modules/_io/_iomodule.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,3 @@ extern PyObject *_PyIO_empty_str;
183183
extern PyObject *_PyIO_empty_bytes;
184184

185185
extern PyTypeObject _PyBytesIOBuffer_Type;
186-
187-
extern void _PyIO_atexit_flush(void);

Modules/_io/bufferedio.c

Lines changed: 1 addition & 45 deletions

0 commit comments

Comments
 (0)