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. +

--- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1343,6 +1343,11 @@ Tkapp_GlobalCall(PyObject *self, PyObjec char *cmd; PyObject *res = NULL;

+ CHECK_TCL_APPARTMENT; cmd = Merge(args); @@ -1392,6 +1397,11 @@ Tkapp_GlobalEval(PyObject *self, PyObjec PyObject *res = NULL; int err;

+ 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) {

+

+ if (s) { res = PyUnicode_FromString(s); ckfree(s);