Skip to content

Commit e4e4a74

Browse files
committed
At found label, the buffer is always locked
1 parent 3424a51 commit e4e4a74

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎Modules/_io/bufferedio.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,9 +1305,7 @@ _buffered_readline(buffered *self, Py_ssize_t limit)
13051305
}
13061306

13071307
found:
1308-
if (locked) {
1309-
LEAVE_BUFFERED(self)
1310-
}
1308+
LEAVE_BUFFERED(self)
13111309
return PyBytesWriter_Finish(writer);
13121310

13131311
error:

0 commit comments

Comments
 (0)