diff options
author | Eva Schlinger <eschling@andrew.cmu.edu> | 2013-06-07 13:28:07 -0400 |
---|---|---|
committer | Eva Schlinger <eschling@andrew.cmu.edu> | 2013-06-07 13:28:07 -0400 |
commit | 0bedc0ef857b06e5913e38e75c096d42d1b6ad6f (patch) | |
tree | 11755b9a67cb95869e1ae418b48124b8974c446f /python/src/sa/int_list.pxi | |
parent | 967d6ca6cc284bd1d292dee0c1374bce7052a872 (diff) | |
parent | 660eabae8886d3e09177749daaf4d4ac29178b0b (diff) |
Merge remote-tracking branch 'upstream/master'
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] |