Author: Manuel Jacob <m...@manueljacob.de> Branch: py3k Changeset: r78182:ae79f5787d65 Date: 2015-06-18 16:18 +0200 http://bitbucket.org/pypy/pypy/changeset/ae79f5787d65/
Log: Fix translation. diff --git a/pypy/module/micronumpy/ctors.py b/pypy/module/micronumpy/ctors.py --- a/pypy/module/micronumpy/ctors.py +++ b/pypy/module/micronumpy/ctors.py @@ -142,7 +142,7 @@ else: # not an array shape, elems_w = strides.find_shape_and_elems(space, w_object, dtype) - if dtype is None and space.isinstance_w(w_object, space.w_buffer): + if dtype is None and space.isinstance_w(w_object, space.w_memoryview): dtype = descriptor.get_dtype_cache(space).w_uint8dtype if dtype is None or (dtype.is_str_or_unicode() and dtype.elsize < 1): dtype = find_dtype_for_seq(space, elems_w, dtype) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit