mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Make test_tcl.py pass, by accepting unicode strings as variable names.
This commit is contained in:
parent
005ebb1f7c
commit
f761e104f6
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue