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 096c2a3 commit 6e70bfeCopy full SHA for 6e70bfe
Modules/_io/bufferedio.c
@@ -563,11 +563,10 @@ _io__Buffered_close_impl(buffered *self)
563
}
564
/* gh-138720: Use IS_CLOSED to match flush CHECK_CLOSED. */
565
r = IS_CLOSED(self);
566
- if (r < 0) {
+ if (r < 0)
567
goto end;
568
- }
569
if (r > 0) {
570
- res = Py_None;
+ res = Py_NewRef(Py_None);
571
572
573
0 commit comments