Skip to content

Commit

Permalink
Fix support for recent Cythons
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Oct 18, 2019
1 parent b203f23 commit 3e9c615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dawg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ cdef class DAWG:
cpdef bint b_has_key(self, bytes key) except -1:
return self.dct.Contains(key, len(key))

cpdef bytes tobytes(self):
cpdef bytes tobytes(self) except +:
"""
Return raw DAWG content as bytes.
"""
Expand Down
2 changes: 1 addition & 1 deletion update_cpp.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
cython src/*.pyx src/*.pxd -a --cplus
cython src/*.pyx src/*.pxd -a --cplus -2

0 comments on commit 3e9c615

Please sign in to comment.