commit | f761e104f61599c6f51c2efd9576c724f9fbf9a5 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Jul 23 18:34:37 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Jul 23 18:34:37 2007 +0000 |
tree | 669e525e388604923f000aacb5dc01a119cfd2f6 | |
parent | 005ebb1f7c40bdacd25fba8cae232ad2fb6c4c84 [diff] [blame] |
Make test_tcl.py pass, by accepting unicode strings as variable names.
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 @@ *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;