[Numpy-svn] r8121 - trunk/numpy/core/src/umath

numpy-svn@scip... numpy-svn@scip...
Wed Feb 17 10:48:37 CST 2010


Author: charris
Date: 2010-02-17 10:48:37 -0600 (Wed, 17 Feb 2010)
New Revision: 8121

Modified:
   trunk/numpy/core/src/umath/ufunc_object.c
Log:
STY: Remove hard tabs, reindent.

Modified: trunk/numpy/core/src/umath/ufunc_object.c
===================================================================
--- trunk/numpy/core/src/umath/ufunc_object.c	2010-02-17 16:48:28 UTC (rev 8120)
+++ trunk/numpy/core/src/umath/ufunc_object.c	2010-02-17 16:48:37 UTC (rev 8121)
@@ -2514,17 +2514,18 @@
     else {
         loop->obj = 0;
     }
-    if ((loop->meth == ZERO_EL_REDUCELOOP) ||
-	((operation == UFUNC_REDUCEAT) && (loop->meth == BUFFER_UFUNCLOOP))) {
+    if ((loop->meth == ZERO_EL_REDUCELOOP)
+            || ((operation == UFUNC_REDUCEAT)
+                && (loop->meth == BUFFER_UFUNCLOOP))) {
         idarr = _getidentity(self, otype, str);
         if (idarr == NULL) {
             goto fail;
         }
         if (idarr->descr->elsize > UFUNC_MAXIDENTITY) {
             PyErr_Format(PyExc_RuntimeError,
-                         "UFUNC_MAXIDENTITY (%d)"           \
-                         " is too small (needs to be at least %d)",
-                         UFUNC_MAXIDENTITY, idarr->descr->elsize);
+                    "UFUNC_MAXIDENTITY (%d) is too small"\
+                    "(needs to be at least %d)",
+                    UFUNC_MAXIDENTITY, idarr->descr->elsize);
             Py_DECREF(idarr);
             goto fail;
         }
@@ -2555,7 +2556,7 @@
         if (out == NULL) {
             loop->ret = (PyArrayObject *)
                 PyArray_New(Py_TYPE(aar), aar->nd, aar->dimensions,
-                            otype, NULL, NULL, 0, 0, (PyObject *)aar);
+                        otype, NULL, NULL, 0, 0, (PyObject *)aar);
         }
         else {
             outsize = PyArray_MultiplyList(aar->dimensions, aar->nd);
@@ -2568,7 +2569,7 @@
         if (out == NULL) {
             loop->ret = (PyArrayObject *)
                 PyArray_New(Py_TYPE(aar), aar->nd, loop_i, otype,
-                            NULL, NULL, 0, 0, (PyObject *)aar);
+                        NULL, NULL, 0, 0, (PyObject *)aar);
         }
         else {
             outsize = PyArray_MultiplyList(loop_i, aar->nd);
@@ -2585,7 +2586,7 @@
     if (out) {
         if (PyArray_SIZE(out) != outsize) {
             PyErr_SetString(PyExc_ValueError,
-                            "wrong shape for output");
+                    "wrong shape for output");
             goto fail;
         }
         loop->ret = (PyArrayObject *)



More information about the Numpy-svn mailing list