[pypy-commit] pypy default: simplify

bdkearns noreply at buildbot.pypy.org
Wed Dec 18 07:42:10 CET 2013


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r68460:6269dd19f95d
Date: 2013-12-18 00:48 -0500
http://bitbucket.org/pypy/pypy/changeset/6269dd19f95d/

Log:	simplify

diff --git a/pypy/module/micronumpy/interp_boxes.py b/pypy/module/micronumpy/interp_boxes.py
--- a/pypy/module/micronumpy/interp_boxes.py
+++ b/pypy/module/micronumpy/interp_boxes.py
@@ -265,8 +265,7 @@
         if not space.is_none(w_out):
             raise OperationError(space.w_NotImplementedError, space.wrap(
                 "out not supported"))
-        v = self.convert_to(space, self.get_dtype(space))
-        return self.get_dtype(space).itemtype.round(v, decimals)
+        return self.get_dtype(space).itemtype.round(self, decimals)
 
     def descr_astype(self, space, w_dtype):
         from pypy.module.micronumpy.interp_dtype import W_Dtype


More information about the pypy-commit mailing list