Author: Richard Plangger <[email protected]>
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])
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit