Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
929b40a6
Commit
929b40a6
authored
Oct 03, 2017
by
Serhiy Storchaka
Committed by
GitHub
Oct 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo(). (#3864)
parent
543386b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
+14
-13
Misc/NEWS.d/next/Library/2017-10-03-14-37-46.bpo-31673.RFCrka.rst
...S.d/next/Library/2017-10-03-14-37-46.bpo-31673.RFCrka.rst
+1
-0
Modules/_tkinter.c
Modules/_tkinter.c
+4
-4
Modules/clinic/_tkinter.c.h
Modules/clinic/_tkinter.c.h
+9
-9
No files found.
Misc/NEWS.d/next/Library/2017-10-03-14-37-46.bpo-31673.RFCrka.rst
0 → 100644
View file @
929b40a6
Fixed typo in the name of Tkinter's method adderrorinfo().
Modules/_tkinter.c
View file @
929b40a6
...
...
@@ -1640,7 +1640,7 @@ _tkinter_tkapp_record_impl(TkappObject *self, const char *script)
}
/*[clinic input]
_tkinter.tkapp.adderrinfo
_tkinter.tkapp.adderr
or
info
msg: str
/
...
...
@@ -1648,8 +1648,8 @@ _tkinter.tkapp.adderrinfo
[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_adderr
or
info_impl
(
TkappObject
*
self
,
const
char
*
msg
)
/*[clinic end generated code: output=
52162eaca2ee53cb input=f4b37aec7c7e8c77
]*/
{
CHECK_STRING_LENGTH
(
msg
);
CHECK_TCL_APPARTMENT
;
...
...
@@ -3253,7 +3253,7 @@ static PyMethodDef Tkapp_methods[] =
_TKINTER_TKAPP_EVAL_METHODDEF
_TKINTER_TKAPP_EVALFILE_METHODDEF
_TKINTER_TKAPP_RECORD_METHODDEF
_TKINTER_TKAPP_ADDERRINFO_METHODDEF
_TKINTER_TKAPP_ADDERR
OR
INFO_METHODDEF
{
"setvar"
,
Tkapp_SetVar
,
METH_VARARGS
},
{
"globalsetvar"
,
Tkapp_GlobalSetVar
,
METH_VARARGS
},
{
"getvar"
,
Tkapp_GetVar
,
METH_VARARGS
},
...
...
Modules/clinic/_tkinter.c.h
View file @
929b40a6
...
...
@@ -80,27 +80,27 @@ exit:
return
return_value
;
}
PyDoc_STRVAR
(
_tkinter_tkapp_adderrinfo__doc__
,
"adderrinfo($self, msg, /)
\n
"
PyDoc_STRVAR
(
_tkinter_tkapp_adderr
or
info__doc__
,
"adderr
or
info($self, msg, /)
\n
"
"--
\n
"
"
\n
"
);
#define _TKINTER_TKAPP_ADDERRINFO_METHODDEF \
{"adderr
info", (PyCFunction)_tkinter_tkapp_adderrinfo, METH_O, _tkinter_tkapp_adder
rinfo__doc__},
#define _TKINTER_TKAPP_ADDERR
OR
INFO_METHODDEF \
{"adderr
orinfo", (PyCFunction)_tkinter_tkapp_adderrorinfo, METH_O, _tkinter_tkapp_adderro
rinfo__doc__},
static
PyObject
*
_tkinter_tkapp_adderrinfo_impl
(
TkappObject
*
self
,
const
char
*
msg
);
_tkinter_tkapp_adderr
or
info_impl
(
TkappObject
*
self
,
const
char
*
msg
);
static
PyObject
*
_tkinter_tkapp_adderrinfo
(
TkappObject
*
self
,
PyObject
*
arg
)
_tkinter_tkapp_adderr
or
info
(
TkappObject
*
self
,
PyObject
*
arg
)
{
PyObject
*
return_value
=
NULL
;
const
char
*
msg
;
if
(
!
PyArg_Parse
(
arg
,
"s:adderrinfo"
,
&
msg
))
{
if
(
!
PyArg_Parse
(
arg
,
"s:adderr
or
info"
,
&
msg
))
{
goto
exit
;
}
return_value
=
_tkinter_tkapp_adderrinfo_impl
(
self
,
msg
);
return_value
=
_tkinter_tkapp_adderr
or
info_impl
(
self
,
msg
);
exit:
return
return_value
;
...
...
@@ -638,4 +638,4 @@ exit:
#ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
#define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
#endif
/* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */
/*[clinic end generated code: output=
3b9241f7c703ae4f
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
ca36236c57713ba0
input=a9049054013a1b77]*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment