summaryrefslogtreecommitdiff
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-05-02 13:12:23 +0200
committerÉric Araujo <merwok@netwok.org>2011-05-02 13:12:23 +0200
commita4574f0d36898725cc1475c15115fbc3c570c098 (patch)
treeef4923cb6b672a34955933a27552c556d706e210 /Modules/_tkinter.c
parent928360dee070381a9d5876cb6a06f9f4bd67634b (diff)
parentb51f16bd9f76110be5547a99962aa23ea9f35656 (diff)
downloadcpython-a4574f0d36898725cc1475c15115fbc3c570c098.tar.gz
Merge 3.1
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 8552575f40..c7c1530545 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -3147,9 +3147,7 @@ PyInit__tkinter(void)
it also helps Tcl find its encodings. */
uexe = PyUnicode_FromWideChar(Py_GetProgramName(), -1);
if (uexe) {
- cexe = PyUnicode_AsEncodedString(uexe,
- Py_FileSystemDefaultEncoding,
- NULL);
+ cexe = PyUnicode_EncodeFSDefault(uexe);
if (cexe)
Tcl_FindExecutable(PyBytes_AsString(cexe));
Py_XDECREF(cexe);