* Fix bits.pyx unicode error

This commit is contained in:
Matthew Honnibal 2015-07-23 20:37:57 +02:00
parent 1406e24327
commit f35ff173b0

View File

@ -80,7 +80,7 @@ cdef class BitArray:
return output return output
def as_bytes(self): def as_bytes(self):
cdef unsigned char byte cdef unsigned char byte_char
if self.bit_of_byte != 0: if self.bit_of_byte != 0:
byte = chr(self.byte) byte = chr(self.byte)
# Jump through some hoops for Python3 # Jump through some hoops for Python3