diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-10-08 11:31:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-08 11:31:35 (GMT) |
commit | d05b000c6bcd39dba4f4b2656e45954802649562 (patch) | |
tree | cc375d0d253bebcc72a73d805d8273bd3d870386 /Modules/_tkinter.c | |
parent | d7c387384a27f37e4e3fa7890c859212c56b45b2 (diff) | |
download | cpython-d05b000c6bcd39dba4f4b2656e45954802649562.zip cpython-d05b000c6bcd39dba4f4b2656e45954802649562.tar.gz cpython-d05b000c6bcd39dba4f4b2656e45954802649562.tar.bz2 |
bpo-38371: Tkinter: deprecate the split() method. (GH-16584)
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index c431d61..235cb6b 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -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; |