diff options
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 |
commit | a4574f0d36898725cc1475c15115fbc3c570c098 (patch) | |
tree | ef4923cb6b672a34955933a27552c556d706e210 /Modules/_tkinter.c | |
parent | 928360dee070381a9d5876cb6a06f9f4bd67634b (diff) | |
parent | b51f16bd9f76110be5547a99962aa23ea9f35656 (diff) | |
download | cpython-a4574f0d36898725cc1475c15115fbc3c570c098.tar.gz |
Merge 3.1
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 4 |
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); |