mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-38371: Tkinter: deprecate the split() method. (GH-16584)
This commit is contained in:
parent
d7c387384a
commit
d05b000c6b
4 changed files with 23 additions and 4 deletions
|
|
@ -2304,6 +2304,12 @@ _tkinter_tkapp_split(TkappObject *self, PyObject *arg)
|
|||
PyObject *v;
|
||||
char *list;
|
||||
|
||||
if (PyErr_WarnEx(PyExc_DeprecationWarning,
|
||||
"split() is deprecated; consider using splitlist() instead", 1))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (PyTclObject_Check(arg)) {
|
||||
Tcl_Obj *value = ((PyTclObject*)arg)->value;
|
||||
int objc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue