diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-27 17:34:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 17:34:35 (GMT) |
commit | d4f9cf5545d6d8844e0726552ef2e366f5cc3abd (patch) | |
tree | 7aefae9861ee6b83652f6a352397b9dc145cc0d3 /Modules/_tkinter.c | |
parent | 1005c84535191a72ebb7587d8c5636a065b7ed79 (diff) | |
download | cpython-d4f9cf5545d6d8844e0726552ef2e366f5cc3abd.zip cpython-d4f9cf5545d6d8844e0726552ef2e366f5cc3abd.tar.gz cpython-d4f9cf5545d6d8844e0726552ef2e366f5cc3abd.tar.bz2 |
bpo-33029: Fix signatures of getter and setter functions. (GH-10746)
Fix also return type for few other functions (clear, releasebuffer).
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index fa26859..a96924c 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -842,7 +842,7 @@ PyTclObject_string(PyTclObject *self, void *ignored) } static PyObject * -PyTclObject_str(PyTclObject *self, void *ignored) +PyTclObject_str(PyTclObject *self) { if (self->string) { Py_INCREF(self->string); @@ -855,7 +855,7 @@ PyTclObject_str(PyTclObject *self, void *ignored) static PyObject * PyTclObject_repr(PyTclObject *self) { - PyObject *repr, *str = PyTclObject_str(self, NULL); + PyObject *repr, *str = PyTclObject_str(self); if (str == NULL) return NULL; repr = PyUnicode_FromFormat("<%s object: %R>", |