* Fix python3 type error

This commit is contained in:
Matthew Honnibal 2015-07-24 02:45:34 +02:00
parent 35a9fb437f
commit 1ab25e4dad

View File

@ -115,7 +115,7 @@ cdef class BitArray:
self.byte &= ~(one << self.bit_of_byte) self.byte &= ~(one << self.bit_of_byte)
self.bit_of_byte += 1 self.bit_of_byte += 1
if self.bit_of_byte == 8: if self.bit_of_byte == 8:
self.data += chr(self.byte) self.data += <bytes>self.byte
self.byte = 0 self.byte = 0
self.bit_of_byte = 0 self.bit_of_byte = 0
self.i += 1 self.i += 1