summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2009-03-05 03:40:32 +0000
committerCharles Harris <charlesr.harris@gmail.com>2009-03-05 03:40:32 +0000
commit428c89c27bf7f57071ccd8ae150b75ddbd8a474a (patch)
tree333564a3a70264f4129cb4e4a36fa5ce95b220b9 /numpy/core/src/arrayobject.c
parentac6175fedfe335acb652f8ea5eaf000653041803 (diff)
downloadnumpy-428c89c27bf7f57071ccd8ae150b75ddbd8a474a.tar.gz
Coding style cleanup. Remove trailing whitespace.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index 3b818b224..6676bce93 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -6781,12 +6781,14 @@ array_data_get(PyArrayObject *self)
return NULL;
}
nbytes = PyArray_NBYTES(self);
- if PyArray_ISWRITEABLE(self)
+ if PyArray_ISWRITEABLE(self) {
return PyBuffer_FromReadWriteObject((PyObject *)self, 0,
(Py_ssize_t) nbytes);
- else
- return PyBuffer_FromObject((PyObject *)self, 0,
+ }
+ else {
+ return PyBuffer_FromObject((PyObject *)self, 0,
(Py_ssize_t) nbytes);
+ }
}
static int