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 d7b146e commit 593b0eaCopy full SHA for 593b0ea
1 file changed
Modules/_io/textio.c
@@ -753,8 +753,9 @@ buffer_access_safe(textio *self)
753
return NULL;
754
}
755
756
- // Returning a borrowed reference is safe since TextIOWrapper
757
- // methods are protected by critical sections.
+ /* Returning a borrowed reference is safe since TextIOWrapper methods are
+ protected by critical sections. */
758
+ _Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(self);
759
return self->buffer;
760
761
0 commit comments