[pypy-commit] pypy py3.5-ssl: translation issue, value was not wrapped

plan_rich pypy.commits at gmail.com
Wed Dec 7 06:02:50 EST 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: py3.5-ssl
Changeset: r88932:75f0bfd94182
Date: 2016-12-07 12:02 +0100
http://bitbucket.org/pypy/pypy/changeset/75f0bfd94182/

Log:	translation issue, value was not wrapped

diff --git a/pypy/objspace/std/memoryobject.py b/pypy/objspace/std/memoryobject.py
--- a/pypy/objspace/std/memoryobject.py
+++ b/pypy/objspace/std/memoryobject.py
@@ -396,7 +396,7 @@
         self._check_released(space)
         dim = self.getndim()
         if dim == 0:
-            return 1
+            return space.newint(1)
         shape = self.getshape()
         return space.wrap(shape[0])
 


More information about the pypy-commit mailing list