Permalink
Browse files

BUG: remove inline statement rejected by cython

Cython 0.17.1 rejects inline in the function definition for cpdef
functions.
  • Loading branch information...
1 parent c4dcc00 commit c0f0fa2a5bdf30f3a4d35fe78a1f9884d2e2896e @matthew-brett matthew-brett committed with rgommers Oct 21, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 scipy/io/matlab/mio5_utils.pyx
View
10 scipy/io/matlab/mio5_utils.pyx
@@ -408,14 +408,14 @@ cdef class VarReader5:
if mod8:
self.cstream.seek(8 - mod8, 1)
return 0
-
- cpdef inline cnp.ndarray read_numeric(self, int copy=True):
+
+ cpdef cnp.ndarray read_numeric(self, int copy=True):
''' Read numeric data element into ndarray
- Reads element, then casts to ndarray.
+ Reads element, then casts to ndarray.
The type of the array is given by the ``mdtype`` returned via
- ``read_element``.
+ ``read_element``.
'''
cdef cnp.uint32_t mdtype, byte_count
cdef void *data_ptr
@@ -440,7 +440,7 @@ cdef class VarReader5:
Py_INCREF(<object> data)
PyArray_Set_BASE(el, data)
return el
-
+
cdef inline object read_int8_string(self):
''' Read, return int8 type string

0 comments on commit c0f0fa2

Please sign in to comment.