[pypy-commit] pypy virtual-arguments: backout 3c234f36e008
fijal
noreply at buildbot.pypy.org
Fri Jul 20 10:47:56 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: virtual-arguments
Changeset: r56251:d8d3c9b11427
Date: 2012-07-20 10:39 +0200
http://bitbucket.org/pypy/pypy/changeset/d8d3c9b11427/
Log: backout 3c234f36e008
diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -1271,9 +1271,7 @@
if w_ndmin is not None and not space.is_w(w_ndmin, space.w_None):
ndmin = space.int_w(w_ndmin)
if ndmin > shapelen:
- lgt = (ndmin - shapelen) + shape
- assert lgt >= 0
- shape = [1] * lgt
+ shape = [1] * (ndmin - shapelen) + shape
shapelen = ndmin
arr = W_NDimArray(shape[:], dtype=dtype, order=order)
arr_iter = arr.create_iter()
More information about the pypy-commit
mailing list