summaryrefslogtreecommitdiff
path: root/python/src/sa/int_list.pxi
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-06-06 16:23:40 -0400
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-06-06 16:23:40 -0400
commit7ca523c492776485b1d5d030b4c1869a188a2e9b (patch)
treecb2e8d7009535057c5a36955e660fe599723a23e /python/src/sa/int_list.pxi
parent229de017a6ddef62af8d02bb067a4e5fa7329f27 (diff)
parent8ef5c9b0e15c45b09a22fd89a4ed7b0e180a9d2b (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.pxi4
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]