[pypy-commit] pypy space-newtext: fix some more space.wrap(), which still fail ztranslation tests

arigo pypy.commits at gmail.com
Mon Feb 13 09:23:59 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: space-newtext
Changeset: r90082:6d64ad55df3b
Date: 2017-02-13 15:23 +0100
http://bitbucket.org/pypy/pypy/changeset/6d64ad55df3b/

Log:	fix some more space.wrap(), which still fail ztranslation tests but
	work when really translated for now (I think it's ok)

diff --git a/pypy/module/_ssl/interp_ssl.py b/pypy/module/_ssl/interp_ssl.py
--- a/pypy/module/_ssl/interp_ssl.py
+++ b/pypy/module/_ssl/interp_ssl.py
@@ -422,9 +422,9 @@
 
         if num_bytes <= 0:
             if rwbuffer:
-                return space.wrap(0)
+                return space.newint(0)
             else:
-                return space.wrap("")
+                return space.newbytes("")
 
         with rffi.scoped_alloc_buffer(num_bytes) as buf:
             while True:


More information about the pypy-commit mailing list