cpython: 6023d73c6f87 (original) (raw)
Mercurial > cpython
changeset 76018:6023d73c6f87
fix issue #5136: deprecate old unused functions from tkinter. These functions are not documnted, so no documentation update. [#5136]
Andrew Svetlov andrew.svetlov@gmail.com | |
---|---|
date | Sat, 31 Mar 2012 19:36:39 +0300 |
parents | ee9b6574b497 |
children | d2b6d821934a 40ed19ed0342 |
files | Misc/NEWS Modules/_tkinter.c |
diffstat | 2 files changed, 20 insertions(+), 1 deletions(-)[+] [-] Misc/NEWS 2 Modules/_tkinter.c 19 |
line wrap: on
line diff
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -37,6 +37,8 @@ Core and Builtins Library ------- +- Issue #5136: deprecated old, unused functions from tkinter. +
- Issue #14409: IDLE now properly executes commands in the Shell window when it cannot read the normal config files on startup and has to use the built-in default key bindings.
--- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1343,6 +1343,11 @@ Tkapp_GlobalCall(PyObject *self, PyObjec char *cmd; PyObject *res = NULL;
- if (PyErr_WarnEx(PyExc_DeprecationWarning,
"globalcall is deprecated and will be removed in 3.4",[](#l2.8)
1) < 0)[](#l2.9)
return 0;[](#l2.10)
+ CHECK_TCL_APPARTMENT; cmd = Merge(args); @@ -1392,6 +1397,11 @@ Tkapp_GlobalEval(PyObject *self, PyObjec PyObject *res = NULL; int err;
- if (PyErr_WarnEx(PyExc_DeprecationWarning,
"globaleval is deprecated and will be removed in 3.4",[](#l2.20)
1) < 0)[](#l2.21)
return 0;[](#l2.22)
+ if (!PyArg_ParseTuple(args, "s:globaleval", &script)) return NULL; @@ -1954,9 +1964,16 @@ Tkapp_Split(PyObject *self, PyObject *ar static PyObject * Tkapp_Merge(PyObject *self, PyObject *args) {