def decode(self, input, final=False):
    return codecs.unicode_internal_decode(input, self.errors)[0]
def decode(self, input, final=False):
    return codecs.unicode_internal_decode(input, self.errors)[0]