Author: Brian Kearns <bdkea...@gmail.com> Branch: Changeset: r69408:3bb2f09c6ca4 Date: 2014-02-25 03:27 -0500 http://bitbucket.org/pypy/pypy/changeset/3bb2f09c6ca4/
Log: another fix diff --git a/pypy/module/micronumpy/interp_dtype.py b/pypy/module/micronumpy/interp_dtype.py --- a/pypy/module/micronumpy/interp_dtype.py +++ b/pypy/module/micronumpy/interp_dtype.py @@ -408,9 +408,12 @@ elif newendian != NPY.IGNORE: endian = newendian itemtype = self.itemtype.__class__(endian in (NPY.NATIVE, NPY.NATBYTE)) + fields = self.fields + if fields is None: + fields = {} return W_Dtype(itemtype, self.num, self.kind, self.char, self.w_box_type, byteorder=endian, elsize=self.elsize, - names=self.names, fields=self.fields, + names=self.names, fields=fields, shape=self.shape, subdtype=self.subdtype) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit