Skip to content

Commit 593b0ea

Browse files
committed
Add back in locked assterion, match surrounding comment style
1 parent d7b146e commit 593b0ea

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Modules/_io/textio.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,9 @@ buffer_access_safe(textio *self)
753753
return NULL;
754754
}
755755

756-
// Returning a borrowed reference is safe since TextIOWrapper
757-
// methods are protected by critical sections.
756+
/* Returning a borrowed reference is safe since TextIOWrapper methods are
757+
protected by critical sections. */
758+
_Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(self);
758759
return self->buffer;
759760
}
760761

0 commit comments

Comments
 (0)