[pypy-commit] pypy default: oops, fix translation

fijal noreply at buildbot.pypy.org
Wed Nov 30 11:29:42 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r50006:bef722513f6c
Date: 2011-11-30 12:29 +0200
http://bitbucket.org/pypy/pypy/changeset/bef722513f6c/

Log:	oops, fix translation

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
@@ -1111,8 +1111,7 @@
         return 'Slice(%s)' % self.parent.debug_repr()
 
     def copy(self):
-        array = NDimArray(self.size, self.shape[:], self.parent.dtype,
-                          self.parent.order)
+        array = NDimArray(self.size, self.shape[:], self.find_dtype())
         iter = self.start_iter()
         while not iter.done():
             array.setitem(iter.offset, self.getitem(iter.offset))


More information about the pypy-commit mailing list