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

(cherry picked from commit 929b40a601)
This commit is contained in:
Serhiy Storchaka 2017-10-03 22:39:37 +03:00 committed by GitHub
parent b5a630f3dd
commit fcc832a4fa
3 changed files with 14 additions and 13 deletions

View file

@ -0,0 +1 @@
Fixed typo in the name of Tkinter's method adderrorinfo().

View file

@ -1668,7 +1668,7 @@ _tkinter_tkapp_record_impl(TkappObject *self, const char *script)
} }
/*[clinic input] /*[clinic input]
_tkinter.tkapp.adderrinfo _tkinter.tkapp.adderrorinfo
msg: str msg: str
/ /
@ -1676,8 +1676,8 @@ _tkinter.tkapp.adderrinfo
[clinic start generated code]*/ [clinic start generated code]*/
static PyObject * static PyObject *
_tkinter_tkapp_adderrinfo_impl(TkappObject *self, const char *msg) _tkinter_tkapp_adderrorinfo_impl(TkappObject *self, const char *msg)
/*[clinic end generated code: output=0e222ee2050eb357 input=4971399317d4c136]*/ /*[clinic end generated code: output=52162eaca2ee53cb input=f4b37aec7c7e8c77]*/
{ {
CHECK_STRING_LENGTH(msg); CHECK_STRING_LENGTH(msg);
CHECK_TCL_APPARTMENT; CHECK_TCL_APPARTMENT;
@ -3304,7 +3304,7 @@ static PyMethodDef Tkapp_methods[] =
_TKINTER_TKAPP_EVAL_METHODDEF _TKINTER_TKAPP_EVAL_METHODDEF
_TKINTER_TKAPP_EVALFILE_METHODDEF _TKINTER_TKAPP_EVALFILE_METHODDEF
_TKINTER_TKAPP_RECORD_METHODDEF _TKINTER_TKAPP_RECORD_METHODDEF
_TKINTER_TKAPP_ADDERRINFO_METHODDEF _TKINTER_TKAPP_ADDERRORINFO_METHODDEF
{"setvar", Tkapp_SetVar, METH_VARARGS}, {"setvar", Tkapp_SetVar, METH_VARARGS},
{"globalsetvar", Tkapp_GlobalSetVar, METH_VARARGS}, {"globalsetvar", Tkapp_GlobalSetVar, METH_VARARGS},
{"getvar", Tkapp_GetVar, METH_VARARGS}, {"getvar", Tkapp_GetVar, METH_VARARGS},

View file

@ -80,27 +80,27 @@ exit:
return return_value; return return_value;
} }
PyDoc_STRVAR(_tkinter_tkapp_adderrinfo__doc__, PyDoc_STRVAR(_tkinter_tkapp_adderrorinfo__doc__,
"adderrinfo($self, msg, /)\n" "adderrorinfo($self, msg, /)\n"
"--\n" "--\n"
"\n"); "\n");
#define _TKINTER_TKAPP_ADDERRINFO_METHODDEF \ #define _TKINTER_TKAPP_ADDERRORINFO_METHODDEF \
{"adderrinfo", (PyCFunction)_tkinter_tkapp_adderrinfo, METH_O, _tkinter_tkapp_adderrinfo__doc__}, {"adderrorinfo", (PyCFunction)_tkinter_tkapp_adderrorinfo, METH_O, _tkinter_tkapp_adderrorinfo__doc__},
static PyObject * static PyObject *
_tkinter_tkapp_adderrinfo_impl(TkappObject *self, const char *msg); _tkinter_tkapp_adderrorinfo_impl(TkappObject *self, const char *msg);
static PyObject * static PyObject *
_tkinter_tkapp_adderrinfo(TkappObject *self, PyObject *arg) _tkinter_tkapp_adderrorinfo(TkappObject *self, PyObject *arg)
{ {
PyObject *return_value = NULL; PyObject *return_value = NULL;
const char *msg; const char *msg;
if (!PyArg_Parse(arg, "s:adderrinfo", &msg)) { if (!PyArg_Parse(arg, "s:adderrorinfo", &msg)) {
goto exit; goto exit;
} }
return_value = _tkinter_tkapp_adderrinfo_impl(self, msg); return_value = _tkinter_tkapp_adderrorinfo_impl(self, msg);
exit: exit:
return return_value; return return_value;
@ -638,4 +638,4 @@ exit:
#ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF #ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
#define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF #define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
#endif /* !defined(_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]*/