Lines Matching refs:closed
160 int closed = iobase_is_closed(self); in _io__IOBase_flush_impl() local
162 if (!closed) { in _io__IOBase_flush_impl()
165 if (closed > 0) { in _io__IOBase_flush_impl()
174 int closed = iobase_is_closed(self); in iobase_closed_get() local
175 if (closed < 0) { in iobase_closed_get()
178 return PyBool_FromLong(closed); in iobase_closed_get()
185 int closed; in iobase_check_closed() local
188 closed = _PyObject_LookupAttr(self, _PyIO_str_closed, &res); in iobase_check_closed()
189 if (closed > 0) { in iobase_check_closed()
190 closed = PyObject_IsTrue(res); in iobase_check_closed()
192 if (closed > 0) { in iobase_check_closed()
197 return closed; in iobase_check_closed()
229 int rc, closed = iobase_is_closed(self); in _io__IOBase_close_impl() local
231 if (closed < 0) { in _io__IOBase_close_impl()
234 if (closed) { in _io__IOBase_close_impl()
261 int closed; in iobase_finalize() local
271 closed = -1; in iobase_finalize()
274 closed = PyObject_IsTrue(res); in iobase_finalize()
276 if (closed == -1) in iobase_finalize()
279 if (closed == 0) { in iobase_finalize()