summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_tkinter.c4
1 files changed, 4 insertions, 0 deletions
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 @@ 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;