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 593b0ea commit e5c014aCopy full SHA for e5c014a
1 file changed
Modules/_io/textio.c
@@ -774,21 +774,21 @@ static PyObject *
774
buffer_callmethod_noargs(textio *self, PyObject *name)
775
{
776
PyObject *buffer = buffer_access_safe(self);
777
-
778
if (buffer == NULL) {
779
return NULL;
780
}
+
781
return PyObject_CallMethodNoArgs(buffer, name);
782
783
784
static PyObject *
785
buffer_callmethod_onearg(textio *self, PyObject *name, PyObject *arg)
786
787
788
789
790
791
792
return PyObject_CallMethodOneArg(buffer, name, arg);
793
794
0 commit comments