Klaus Demo bjoern / d62b2f3
Fix Jonas Haag 1 year, 11 months ago
1 changed file(s) with 1 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
5252 FileWrapper_IterNext(PyObject* self)
5353 {
5454 PyObject* data = PyObject_CallMethodObjArgs(FW_self->file, _read, FW_self->blocksize, NULL);
55 if (data == NULL) {
56 return NULL;
57 } else if (PyObject_IsTrue(data)) {
55 if (data != NULL && PyObject_IsTrue(data)) {
5856 return data;
5957 } else {
60 PyErr_SetNone(PyExc_IndexError);
6158 return NULL;
6259 }
6360 }