mirror of https://github.com/python/cpython
Make test_tcl.py pass, by accepting unicode strings as variable names.
This commit is contained in:
parent
005ebb1f7c
commit
f761e104f6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue