[Numpy-svn] r6472 - in trunk/numpy/core: src tests
numpy-svn at scipy.org
numpy-svn at scipy.org
Wed Feb 25 11:51:40 EST 2009
Author: charris
Date: 2009-02-25 10:51:29 -0600 (Wed, 25 Feb 2009)
New Revision: 6472
Modified:
trunk/numpy/core/src/scalartypes.inc.src
trunk/numpy/core/tests/test_regression.py
Log:
Fix coding style. Fix test_void_scalar_with_titles.
Modified: trunk/numpy/core/src/scalartypes.inc.src
===================================================================
--- trunk/numpy/core/src/scalartypes.inc.src 2009-02-25 13:46:13 UTC (rev 6471)
+++ trunk/numpy/core/src/scalartypes.inc.src 2009-02-25 16:51:29 UTC (rev 6472)
@@ -1451,7 +1451,9 @@
PyObject *ret, *newargs;
newargs = PyTuple_GetSlice(args, 0, 2);
- if (newargs == NULL) return NULL;
+ if (newargs == NULL) {
+ return NULL;
+ }
ret = gentype_generic_method((PyObject *)self, newargs, kwds, "getfield");
Py_DECREF(newargs);
if (!ret) {
Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py 2009-02-25 13:46:13 UTC (rev 6471)
+++ trunk/numpy/core/tests/test_regression.py 2009-02-25 16:51:29 UTC (rev 6472)
@@ -1224,7 +1224,7 @@
"""No ticket"""
data = [('john', 4), ('mary', 5)]
dtype1 = [(('source:yy', 'name'), 'O'), (('source:xx', 'id'), int)]
- arr = array(data, dtype=dtype1)
+ arr = np.array(data, dtype=dtype1)
assert arr[0][0] == 'john'
assert arr[0][1] == 4
More information about the Numpy-svn
mailing list