We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df212a5 commit d1a1a98Copy full SHA for d1a1a98
1 file changed
Modules/_io/textio.c
@@ -740,8 +740,7 @@ static PyObject *
740
buffer_access_safe(textio *self)
741
{
742
/* Check self->buffer directly but match errors of CHECK_ATTACHED since this
743
- is called during construction and destruction where self->ok which
744
- CHECK_ATTACHED uses does not imply self->buffer state. */
+ is called during construction and finalization where self->ok == 0. */
745
if (self->buffer == NULL) {
746
if (self->ok <= 0) {
747
PyErr_SetString(PyExc_ValueError,
0 commit comments