From f35ff173b0c1ccab044a6ad5b774748b9e921e03 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 23 Jul 2015 20:37:57 +0200 Subject: [PATCH] * Fix bits.pyx unicode error --- spacy/serialize/bits.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/serialize/bits.pyx b/spacy/serialize/bits.pyx index 105db4269..bd1058962 100644 --- a/spacy/serialize/bits.pyx +++ b/spacy/serialize/bits.pyx @@ -80,7 +80,7 @@ cdef class BitArray: return output def as_bytes(self): - cdef unsigned char byte + cdef unsigned char byte_char if self.bit_of_byte != 0: byte = chr(self.byte) # Jump through some hoops for Python3