[pypy-commit] pypy matrixmath-dot: clean up to_str a tiny bit (2)

mattip noreply at buildbot.pypy.org
Sun Dec 25 01:02:05 CET 2011


Author: mattip
Branch: matrixmath-dot
Changeset: r50844:d1038ba54b76
Date: 2011-12-24 22:38 +0200
http://bitbucket.org/pypy/pypy/changeset/d1038ba54b76/

Log:	clean up to_str a tiny bit (2)

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
@@ -921,9 +921,7 @@
                             builder.append('\n' + indent)
                         else:
                             builder.append(indent)
-                    # create_slice requires len(chunks) > 1 in order to reduce
-                    # shape
-                    view = self.create_slice([(i, 0, 0, 1), (0, self.shape[1], 1, self.shape[1])]).get_concrete()
+                    view = self.create_slice([(i, 0, 0, 1)]).get_concrete()
                     view.to_str(space, comma, builder, indent=indent + ' ', use_ellipsis=use_ellipsis)
                 builder.append('\n' + indent + '..., ')
                 i = self.shape[0] - 3


More information about the pypy-commit mailing list