* Rename StandardError to Exception, for Python 3 compatibility

This commit is contained in:
Matthew Honnibal 2015-04-12 07:28:34 +02:00
parent c50b493c85
commit 507048dc45
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ cdef class BiluoPushDown(TransitionSystem):
if self.c[i].move == move and self.c[i].label == label:
return self.c[i]
else:
raise StandardError(name)
raise Exception(name)
cdef Transition init_transition(self, int clas, int move, int label) except *:
# TODO: Apparent Cython bug here when we try to use the Transition()