summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-09-20 20:24:20 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-09-20 20:24:20 (GMT)
commitdac8b8b7a6540344aee5c4b84a9963890890a5e3 (patch)
tree9e5f24f614e591e05f025ce4d46b116a84661d4e /Modules
parentde24a1fc0220bba538d0a59965213f4ec241dc98 (diff)
parent31f477c7eb831f044c1628d6d9acf86f6881cead (diff)
downloadcpython-dac8b8b7a6540344aee5c4b84a9963890890a5e3.zip
cpython-dac8b8b7a6540344aee5c4b84a9963890890a5e3.tar.gz
cpython-dac8b8b7a6540344aee5c4b84a9963890890a5e3.tar.bz2
Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call
returned empty string.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_tkinter.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index bef7837..7b58fd8 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -1107,10 +1107,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;
}