[Python-Dev] [Python-checkins] cpython: Issue #14446: Remove deprecated tkinter functions: Delete an unused function to (original) (raw)

Andrew Svetlov andrew.svetlov at gmail.com
Fri Oct 5 09:31:53 CEST 2012


Thank you, Jesus. I've missed this function.

On Fri, Oct 5, 2012 at 5:03 AM, jesus.cea <python-checkins at python.org> wrote:

http://hg.python.org/cpython/rev/e278f3ab0190 changeset: 79484:e278f3ab0190 user: Jesus Cea <jcea at jcea.es> date: Fri Oct 05 04:02:41 2012 +0200 summary: Issue #14446: Remove deprecated tkinter functions: Delete an unused function to avoid a warning

files: Modules/tkinter.c | 30 ------------------------------ 1 files changed, 0 insertions(+), 30 deletions(-)

diff --git a/Modules/tkinter.c b/Modules/tkinter.c --- a/Modules/tkinter.c +++ b/Modules/tkinter.c @@ -323,36 +323,6 @@ #endif /* WITHTHREAD */ -static char * -AsString(PyObject *value, PyObject *tmp) -{ - if (PyBytesCheck(value)) - return PyBytesAsString(value); - else if (PyUnicodeCheck(value)) { - PyObject *v = PyUnicodeAsUTF8String(value); - if (v == NULL) - return NULL; - if (PyListAppend(tmp, v) != 0) { - PyDECREF(v); - return NULL; - } - PyDECREF(v); - return PyBytesAsString(v); - } - else { - PyObject *v = PyObjectStr(value); - if (v == NULL) - return NULL; - if (PyListAppend(tmp, v) != 0) { - PyDECREF(v); - return NULL; - } - PyDECREF(v); - return PyBytesAsString(v); - } -} - - #define ARGSZ 64 -- Repository URL: http://hg.python.org/cpython


Python-checkins mailing list Python-checkins at python.org http://mail.python.org/mailman/listinfo/python-checkins

-- Thanks, Andrew Svetlov



More information about the Python-Dev mailing list