From 3e9c615b7a17d94a4e932aca14c28d501329aaf0 Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Fri, 18 Oct 2019 14:56:12 +0200 Subject: [PATCH] Fix support for recent Cythons --- src/dawg.pyx | 2 +- update_cpp.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dawg.pyx b/src/dawg.pyx index 133c7fc..eb20c9f 100644 --- a/src/dawg.pyx +++ b/src/dawg.pyx @@ -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. """ diff --git a/update_cpp.sh b/update_cpp.sh index 86dcf94..7f771a7 100755 --- a/update_cpp.sh +++ b/update_cpp.sh @@ -1,2 +1,2 @@ #!/bin/sh -cython src/*.pyx src/*.pxd -a --cplus +cython src/*.pyx src/*.pxd -a --cplus -2