diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2007-08-21 18:36:06 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2007-08-21 18:36:06 +0000 |
commit | f362b39ddc85a0529196de99b79dbcdce58c77e4 (patch) | |
tree | bca178531374771f0685d51decaa03f4d8c8d19e /numpy/f2py/lib | |
parent | cffb9714779adc0156c36bb55d0a1e8a29589408 (diff) | |
download | numpy-f362b39ddc85a0529196de99b79dbcdce58c77e4.tar.gz |
Fix whitespace to conform to Python 3000 convention.
Diffstat (limited to 'numpy/f2py/lib')
-rw-r--r-- | numpy/f2py/lib/src/pyobj_to_string_len.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/numpy/f2py/lib/src/pyobj_to_string_len.c b/numpy/f2py/lib/src/pyobj_to_string_len.c index 306c961a3..f082a4b3b 100644 --- a/numpy/f2py/lib/src/pyobj_to_string_len.c +++ b/numpy/f2py/lib/src/pyobj_to_string_len.c @@ -1,11 +1,11 @@ int pyobj_to_string_len(PyObject* obj, f2py_string* value, size_t length) { - if (PyString_Check(obj)) { - if (strncpy((char*)value,PyString_AS_STRING(obj), length)) - return 1; - } - if (!PyErr_Occurred()) { - PyErr_SetString(PyExc_TypeError, - "Failed to convert python object to C f2py_string."); - } - return 0; + if (PyString_Check(obj)) { + if (strncpy((char*)value,PyString_AS_STRING(obj), length)) + return 1; + } + if (!PyErr_Occurred()) { + PyErr_SetString(PyExc_TypeError, + "Failed to convert python object to C f2py_string."); + } + return 0; } |