diff Modules/_tkinter.c @ 42353:959e52ae2627

Make test_tcl.py pass, by accepting unicode strings as variable names.
author Guido van Rossum <guido@python.org>
date Mon, 23 Jul 2007 18:34:37 +0000
parents e70cdce0e8b2
children dcf27385f125
line wrap: on
line diff
--- a/Modules/_tkinter.c	Mon Jul 23 18:06:59 2007 +0000
+++ b/Modules/_tkinter.c	Mon Jul 23 18:34:37 2007 +0000
@@ -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;