commit | d4f9cf5545d6d8844e0726552ef2e366f5cc3abd | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Nov 27 19:34:35 2018 +0200 |
committer | GitHub <noreply@github.com> | Tue Nov 27 19:34:35 2018 +0200 |
tree | 7aefae9861ee6b83652f6a352397b9dc145cc0d3 | |
parent | 1005c84535191a72ebb7587d8c5636a065b7ed79 [diff] [blame] |
bpo-33029: Fix signatures of getter and setter functions. (GH-10746) Fix also return type for few other functions (clear, releasebuffer).
diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c index 8e54ec8..55e34c6 100644 --- a/Modules/_io/bytesio.c +++ b/Modules/_io/bytesio.c
@@ -202,7 +202,7 @@ } static PyObject * -bytesio_get_closed(bytesio *self) +bytesio_get_closed(bytesio *self, void *Py_UNUSED(ignored)) { if (self->buf == NULL) { Py_RETURN_TRUE;