'Resets the codec buffers used for keeping state.
Note that no stream repositioning should take place.
This method is primarily intended to be able to recover
from decoding errors.'

def reset(self):

    self.bytebuffer = ''
    self.charbuffer = u''
    self.linebuffer = None
