[pypy-commit] pypy py3.5: Fix 2 to 3 conversion

rlamy pypy.commits at gmail.com
Mon Oct 31 12:00:42 EDT 2016


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r88001:889c33f2f2c7
Date: 2016-10-31 15:58 +0000
http://bitbucket.org/pypy/pypy/changeset/889c33f2f2c7/

Log:	Fix 2 to 3 conversion

diff --git a/lib_pypy/_tkinter/tclobj.py b/lib_pypy/_tkinter/tclobj.py
--- a/lib_pypy/_tkinter/tclobj.py
+++ b/lib_pypy/_tkinter/tclobj.py
@@ -160,7 +160,7 @@
         encoded = value.encode('utf-16')[2:]
         buf = tkffi.new("char[]", encoded)
         inbuf = tkffi.cast("Tcl_UniChar*", buf)
-        return tklib.Tcl_NewUnicodeObj(inbuf, len(encoded)/2)
+        return tklib.Tcl_NewUnicodeObj(inbuf, len(encoded)//2)
     if isinstance(value, Tcl_Obj):
         tklib.Tcl_IncrRefCount(value._value)
         return value._value


More information about the pypy-commit mailing list