Skip to content

[3.6] bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo(). (GH-3864). #3873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed typo in the name of Tkinter's method adderrorinfo().
8 changes: 4 additions & 4 deletions Modules/_tkinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1668,16 +1668,16 @@ _tkinter_tkapp_record_impl(TkappObject *self, const char *script)
}

/*[clinic input]
_tkinter.tkapp.adderrinfo
_tkinter.tkapp.adderrorinfo

msg: str
/

[clinic start generated code]*/

static PyObject *
_tkinter_tkapp_adderrinfo_impl(TkappObject *self, const char *msg)
/*[clinic end generated code: output=0e222ee2050eb357 input=4971399317d4c136]*/
_tkinter_tkapp_adderrorinfo_impl(TkappObject *self, const char *msg)
/*[clinic end generated code: output=52162eaca2ee53cb input=f4b37aec7c7e8c77]*/
{
CHECK_STRING_LENGTH(msg);
CHECK_TCL_APPARTMENT;
Expand Down Expand Up @@ -3304,7 +3304,7 @@ static PyMethodDef Tkapp_methods[] =
_TKINTER_TKAPP_EVAL_METHODDEF
_TKINTER_TKAPP_EVALFILE_METHODDEF
_TKINTER_TKAPP_RECORD_METHODDEF
_TKINTER_TKAPP_ADDERRINFO_METHODDEF
_TKINTER_TKAPP_ADDERRORINFO_METHODDEF
{"setvar", Tkapp_SetVar, METH_VARARGS},
{"globalsetvar", Tkapp_GlobalSetVar, METH_VARARGS},
{"getvar", Tkapp_GetVar, METH_VARARGS},
Expand Down
18 changes: 9 additions & 9 deletions Modules/clinic/_tkinter.c.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,27 +80,27 @@ _tkinter_tkapp_record(TkappObject *self, PyObject *arg)
return return_value;
}

PyDoc_STRVAR(_tkinter_tkapp_adderrinfo__doc__,
"adderrinfo($self, msg, /)\n"
PyDoc_STRVAR(_tkinter_tkapp_adderrorinfo__doc__,
"adderrorinfo($self, msg, /)\n"
"--\n"
"\n");

#define _TKINTER_TKAPP_ADDERRINFO_METHODDEF \
{"adderrinfo", (PyCFunction)_tkinter_tkapp_adderrinfo, METH_O, _tkinter_tkapp_adderrinfo__doc__},
#define _TKINTER_TKAPP_ADDERRORINFO_METHODDEF \
{"adderrorinfo", (PyCFunction)_tkinter_tkapp_adderrorinfo, METH_O, _tkinter_tkapp_adderrorinfo__doc__},

static PyObject *
_tkinter_tkapp_adderrinfo_impl(TkappObject *self, const char *msg);
_tkinter_tkapp_adderrorinfo_impl(TkappObject *self, const char *msg);

static PyObject *
_tkinter_tkapp_adderrinfo(TkappObject *self, PyObject *arg)
_tkinter_tkapp_adderrorinfo(TkappObject *self, PyObject *arg)
{
PyObject *return_value = NULL;
const char *msg;

if (!PyArg_Parse(arg, "s:adderrinfo", &msg)) {
if (!PyArg_Parse(arg, "s:adderrorinfo", &msg)) {
goto exit;
}
return_value = _tkinter_tkapp_adderrinfo_impl(self, msg);
return_value = _tkinter_tkapp_adderrorinfo_impl(self, msg);

exit:
return return_value;
Expand Down Expand Up @@ -638,4 +638,4 @@ _tkinter_getbusywaitinterval(PyObject *module, PyObject *Py_UNUSED(ignored))
#ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
#define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
#endif /* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */
/*[clinic end generated code: output=836c578b71d69097 input=a9049054013a1b77]*/
/*[clinic end generated code: output=b0be55aacff2be9b input=a9049054013a1b77]*/