Author: Matti Picus <matti.pi...@gmail.com>
Branch: 
Changeset: r70829:e54a3b9abdc0
Date: 2014-04-21 21:54 +0300
http://bitbucket.org/pypy/pypy/changeset/e54a3b9abdc0/

Log:    whoops

diff --git a/pypy/module/micronumpy/ndarray.py 
b/pypy/module/micronumpy/ndarray.py
--- a/pypy/module/micronumpy/ndarray.py
+++ b/pypy/module/micronumpy/ndarray.py
@@ -713,11 +713,11 @@
             raise oefmt(space.w_ValueError,
                         "'%s' is an invalid value for keyword 'side'", side)
         if len(self.get_shape()) > 1:
-            raise OperationError(space.w_ValueError, space.wrap(
+            raise oefmt(space.w_ValueError, 
                 "a must be a 1-d array")
         v = convert_to_array(space, w_v)
         if len(v.get_shape()) > 1:
-            raise OperationError(space.w_ValueError, space.wrap(
+            raise oefmt(space.w_ValueError,
                  "v must be a 1-d array-like")
         ret = W_NDimArray.from_shape(
             space, v.get_shape(), 
descriptor.get_dtype_cache(space).w_longdtype)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to