Skip to content

Commit c5e7b24

Browse files
committed
fix docstring
1 parent 5c188f5 commit c5e7b24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_io/textio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,8 +1622,8 @@ _textiowrapper_writeflush(textio *self)
16221622
NOTE: this code relies on GIL / @critical_section. It needs to ensure
16231623
state is "safe" before/after calls to other Python code.
16241624
1625-
In particular _textiowrapper_writeflush() calls buffer.write(). That will
1626-
modify self->pending_bytes.
1625+
In particular during calls to `buffer.write` self->pending_bytes may be
1626+
modified by other threads.
16271627
16281628
At the end of this function either pending_bytes needs to be NULL _or_
16291629
there needs to be an exception.

0 commit comments

Comments
 (0)