class BufferedIncrementalDecoder(IncrementalDecoder): """ This subclass of IncrementalDecoder can be used as the baseclass for an incremental decoder if the decoder must be able to handle incomplete byte sequences. """ def __init__(self, errors='ignore'): IncrementalDecoder.__init__(self, errors) # undecoded input that is kept between calls to decode() self.buffer = b""
标签:__,utf,self,ignore,报错,decoder,IncrementalDecoder From: https://www.cnblogs.com/xkdn/p/17637235.html