[pypy-commit] pypy str-dtype-improvement: simplify

mattip noreply at buildbot.pypy.org
Fri Mar 15 00:29:16 CET 2013


Author: mattip <matti.picus at gmail.com>
Branch: str-dtype-improvement
Changeset: r62345:b009349f6dde
Date: 2013-03-14 11:44 -0700
http://bitbucket.org/pypy/pypy/changeset/b009349f6dde/

Log:	simplify

diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -1634,7 +1634,7 @@
     def coerce(self, space, dtype, w_item):
         from pypy.module.micronumpy.interp_dtype import new_string_dtype
         arg = space.str_w(space.str(w_item))
-        arr = interp_boxes.VoidBoxStorage(len(arg), new_string_dtype(space, len(arg)))
+        arr = VoidBoxStorage(len(arg), new_string_dtype(space, len(arg)))
         for i in range(len(arg)):
             arr.storage[i] = arg[i]
         return interp_boxes.W_StringBox(arr,  0, arr.dtype)


More information about the pypy-commit mailing list