diff options
author | Guido van Rossum <guido@python.org> | 2007-07-23 18:34:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-07-23 18:34:37 (GMT) |
commit | f761e104f61599c6f51c2efd9576c724f9fbf9a5 (patch) | |
tree | 669e525e388604923f000aacb5dc01a119cfd2f6 | |
parent | 005ebb1f7c40bdacd25fba8cae232ad2fb6c4c84 (diff) | |
download | cpython-f761e104f61599c6f51c2efd9576c724f9fbf9a5.zip cpython-f761e104f61599c6f51c2efd9576c724f9fbf9a5.tar.gz cpython-f761e104f61599c6f51c2efd9576c724f9fbf9a5.tar.bz2 |
Make test_tcl.py pass, by accepting unicode strings as variable names.
-rw-r--r-- | Modules/_tkinter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index c8e4ef7..e9dc72b 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; |