Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 540314
Collapse All | Expand All

(-)scipy-0.14.0-orig/scipy/io/matlab/streams.pyx (-2 / +2 lines)
Lines 201-207 Link Here
201
        return (self._max_length == self._read_bytes) and \
201
        return (self._max_length == self._read_bytes) and \
202
               (self._buffer_size == self._buffer_position)
202
               (self._buffer_size == self._buffer_position)
203
203
204
    cpdef long int tell(self):
204
    cpdef long int tell(self) except -1:
205
        return self._total_position
205
        return self._total_position
206
206
207
    cpdef int seek(self, long int offset, int whence=0) except -1:
207
    cpdef int seek(self, long int offset, int whence=0) except -1:
Lines 304-310 Link Here
304
            raise IOError('Failed seek')
304
            raise IOError('Failed seek')
305
        return ret
305
        return ret
306
306
307
    cpdef long int tell(self):
307
    cpdef long int tell(self) except -1:
308
        return ftell(self.file)
308
        return ftell(self.file)
309
309
310
    cdef int read_into(self, void *buf, size_t n) except -1:
310
    cdef int read_into(self, void *buf, size_t n) except -1:

Return to bug 540314