From: Guido van Rossum Date: Mon, 23 Jul 2007 18:34:37 +0000 (+0000) Subject: Make test_tcl.py pass, by accepting unicode strings as variable names. X-Git-Tag: v3.0a1~584 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f761e104f61599c6f51c2efd9576c724f9fbf9a5;p=thirdparty%2FPython%2Fcpython.git Make test_tcl.py pass, by accepting unicode strings as variable names. --- diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index c8e4ef72792a..e9dc72bb02a1 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1463,6 +1463,10 @@ varname_converter(PyObject *in, void *_out) *out = PyString_AsString(in); return 1; } + if (PyUnicode_Check(in)) { + *out = PyUnicode_AsString(in); + return 1; + } if (PyTclObject_Check(in)) { *out = PyTclObject_TclString(in); return 1;