Author: Amaury Forgeot d'Arc <[email protected]>
Branch: stdlib-2.7.9
Changeset: r75514:3931bad51c08
Date: 2015-01-25 16:58 +0100
http://bitbucket.org/pypy/pypy/changeset/3931bad51c08/

Log:    Fix last failures in test_tk

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
@@ -25,6 +25,8 @@
 def varname_converter(input):
     if isinstance(input, TclObject):
         return input.string
+    if b'\0' in input:
+        raise ValueError("NUL character in string")
     return input
 
 
@@ -542,5 +544,4 @@
         res = tklib.Tcl_NewByteArrayObj(cdata, len(buf))
         if not res:
             self.raiseTclError()
-        return FromObj(self, res)
-        
+        return TclObject(res)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to