Author: Matti Picus <[email protected]>
Branch: 
Changeset: r92771:4da3d7649d2b
Date: 2017-10-15 19:18 +0300
http://bitbucket.org/pypy/pypy/changeset/4da3d7649d2b/

Log:    make sure argv0 is bytes, not unicode (for matplotlib tkagg backend)

diff --git a/lib_pypy/_tkinter/app.py b/lib_pypy/_tkinter/app.py
--- a/lib_pypy/_tkinter/app.py
+++ b/lib_pypy/_tkinter/app.py
@@ -119,7 +119,7 @@
                              tklib.TCL_GLOBAL_ONLY)
 
         # This is used to get the application class for Tk 4.1 and up
-        argv0 = className.lower()
+        argv0 = className.lower().encode('ascii')
         tklib.Tcl_SetVar(self.interp, "argv0", argv0,
                          tklib.TCL_GLOBAL_ONLY)
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to