Skip to content

Commit

Permalink
BUG: use newer cinit syntax for cython 0.15
Browse files Browse the repository at this point in the history
Was raising an error when cythonizing with cython 0.15.  Tested as still
working on cython 0.13 with this change.
  • Loading branch information
matthew-brett authored and rgommers committed Nov 1, 2011
1 parent 84c4247 commit 949e5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy/io/matlab/mio5_utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ cdef class VarReader5:
* mat_dtype (bool)
* squeeze_me (bool)
"""
def __new__(self, preader):
def __cinit__(self, preader):
byte_order = preader.byte_order
self.is_swapped = byte_order == swapped_code
if self.is_swapped:
Expand Down

0 comments on commit 949e5a6

Please sign in to comment.