Skip to content

Commit 6e70bfe

Browse files
committed
revert unrelated changes
1 parent 096c2a3 commit 6e70bfe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Modules/_io/bufferedio.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,10 @@ _io__Buffered_close_impl(buffered *self)
563563
}
564564
/* gh-138720: Use IS_CLOSED to match flush CHECK_CLOSED. */
565565
r = IS_CLOSED(self);
566-
if (r < 0) {
566+
if (r < 0)
567567
goto end;
568-
}
569568
if (r > 0) {
570-
res = Py_None;
569+
res = Py_NewRef(Py_None);
571570
goto end;
572571
}
573572

0 commit comments

Comments
 (0)