Skip to content

Commit d1a1a98

Browse files
committed
Simplify comment
1 parent df212a5 commit d1a1a98

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Modules/_io/textio.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,7 @@ static PyObject *
740740
buffer_access_safe(textio *self)
741741
{
742742
/* 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. */
743+
is called during construction and finalization where self->ok == 0. */
745744
if (self->buffer == NULL) {
746745
if (self->ok <= 0) {
747746
PyErr_SetString(PyExc_ValueError,

0 commit comments

Comments
 (0)