Make test_tcl.py pass, by accepting unicode strings as variable names.

This commit is contained in:
Guido van Rossum 2007-07-23 18:34:37 +00:00
parent 005ebb1f7c
commit f761e104f6
1 changed files with 4 additions and 0 deletions

View File

@ -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;