def encode(self, input, final=False): return oem_encode(input, self.errors)[0]
def update_event(self, inp=-1): self.set_output_val(0, codecs.oem_encode(self.input(0), self.input(1)))