diff options
author | Paul Baltescu <pauldb89@gmail.com> | 2013-06-19 15:06:34 +0100 |
---|---|---|
committer | Paul Baltescu <pauldb89@gmail.com> | 2013-06-19 15:06:34 +0100 |
commit | 459775095b46b4625ce26ea5a34001ec74ab3aa8 (patch) | |
tree | 844d1a650a302114ae619d37b8778ab66207a834 /python/src/sa/int_list.pxi | |
parent | 02099a01350a41a99ec400e9b29df08a01d88979 (diff) | |
parent | 0dc7755f7fb1ef15db5a60c70866aa61b6367898 (diff) |
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'python/src/sa/int_list.pxi')
-rw-r--r-- | python/src/sa/int_list.pxi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/src/sa/int_list.pxi b/python/src/sa/int_list.pxi index 79d67ad9..46d434e7 100644 --- a/python/src/sa/int_list.pxi +++ b/python/src/sa/int_list.pxi @@ -29,12 +29,12 @@ cdef class IntList: ret += str(self.len) return ret - def index(self, val): + def index(self, int val): cdef unsigned i for i in range(self.len): if self.arr[i] == val: return i - return IndexError + raise ValueError('%s not in IntList' % val) def partition(self,start,end): pivot = self.arr[end] |