[pypy-commit] pypy default: whitespace
bdkearns
noreply at buildbot.pypy.org
Fri Mar 22 22:49:11 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r62665:b7d6a906dc0c
Date: 2013-03-22 17:48 -0400
http://bitbucket.org/pypy/pypy/changeset/b7d6a906dc0c/
Log: whitespace
diff --git a/pypy/module/micronumpy/arrayimpl/concrete.py b/pypy/module/micronumpy/arrayimpl/concrete.py
--- a/pypy/module/micronumpy/arrayimpl/concrete.py
+++ b/pypy/module/micronumpy/arrayimpl/concrete.py
@@ -1,4 +1,3 @@
-
from pypy.module.micronumpy.arrayimpl import base, scalar
from pypy.module.micronumpy import support, loop, iter
from pypy.module.micronumpy.base import convert_to_array, W_NDimArray,\
@@ -15,6 +14,7 @@
from pypy.module.micronumpy.arrayimpl.sort import argsort_array
from rpython.rlib.debug import make_sure_not_resized
+
class BaseConcreteArray(base.BaseArrayImplementation):
start = 0
parent = None
@@ -82,7 +82,7 @@
return SliceArray(self.start, strides, backstrides,
self.get_shape(), self, orig_array)
- def set_real(self, space, orig_array, w_value):
+ def set_real(self, space, orig_array, w_value):
tmp = self.get_real(orig_array)
tmp.setslice(space, convert_to_array(space, w_value))
@@ -102,7 +102,7 @@
impl.fill(self.dtype.box(0))
return impl
- def set_imag(self, space, orig_array, w_value):
+ def set_imag(self, space, orig_array, w_value):
tmp = self.get_imag(orig_array)
tmp.setslice(space, convert_to_array(space, w_value))
@@ -284,10 +284,11 @@
if dtype.is_str_or_unicode():
raise OperationError(space.w_NotImplementedError, space.wrap(
"astype(%s) not implemented yet" % self.dtype))
- else:
+ else:
loop.setslice(space, new_arr.get_shape(), new_arr.implementation, self)
return new_arr
+
class ConcreteArrayNotOwning(BaseConcreteArray):
def __init__(self, shape, dtype, order, strides, backstrides, storage):
@@ -325,6 +326,7 @@
def base(self):
return None
+
class ConcreteArray(ConcreteArrayNotOwning):
def __init__(self, shape, dtype, order, strides, backstrides):
# we allocate the actual storage later because we need to compute
@@ -338,8 +340,6 @@
free_raw_storage(self.storage, track_allocation=False)
-
-
class NonWritableArray(ConcreteArray):
def descr_setitem(self, space, orig_array, w_index, w_value):
raise OperationError(space.w_RuntimeError, space.wrap(
@@ -417,6 +417,7 @@
return SliceArray(self.start, new_strides, new_backstrides, new_shape,
self, orig_array)
+
class ArrayBuffer(RWBuffer):
def __init__(self, impl):
self.impl = impl
More information about the pypy-commit
mailing list