[pypy-commit] pypy default: fix for None in kwargs

mattip noreply at buildbot.pypy.org
Sat Oct 13 21:26:53 CEST 2012


Author: mattip <matti.picus at gmail.com>
Branch: 
Changeset: r58111:e537e0093563
Date: 2012-10-13 21:26 +0200
http://bitbucket.org/pypy/pypy/changeset/e537e0093563/

Log:	fix for None in kwargs

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
@@ -661,7 +661,7 @@
             raise operationerrfmt(space.w_ValueError, "Unknown order: %s",
                                   order)
     if isinstance(w_object, W_NDimArray):
-        if (not space.is_w(w_dtype, space.w_None) and
+        if (not space.is_none(w_dtype) and
             w_object.get_dtype() is not w_dtype):
             raise OperationError(space.w_NotImplementedError, space.wrap(
                                   "copying over different dtypes unsupported"))


More information about the pypy-commit mailing list