summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-09-20 20:21:44 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-09-20 20:21:44 (GMT)
commit31f477c7eb831f044c1628d6d9acf86f6881cead (patch)
tree564a1aa9720c4bcfa231b9aaf4ed46fdb4fcf8d9 /Modules/_tkinter.c
parentc8bf95cfc58d92c365abd4c958feb15f872b2a29 (diff)
downloadcpython-31f477c7eb831f044c1628d6d9acf86f6881cead.zip
cpython-31f477c7eb831f044c1628d6d9acf86f6881cead.tar.gz
cpython-31f477c7eb831f044c1628d6d9acf86f6881cead.tar.bz2
Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call
returned empty string.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index e6b72d3..1350ff5 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -1227,10 +1227,7 @@ Tkapp_CallResult(TkappObject *self)
res = FromObj((PyObject*)self, value);
Tcl_DecrRefCount(value);
} else {
- const char *s = Tcl_GetStringResult(self->interp);
- const char *p = s;
-
- res = PyUnicode_FromStringAndSize(s, (int)(p-s));
+ res = PyUnicode_FromString(Tcl_GetStringResult(self->interp));
}
return res;
}