--- c:/Python37/Lib/codecs.py 2019-07-08 19:24:18.000000000 -0400 +++ codecs.py 2019-10-15 04:25:58.392729100 -0400 @@ -318,7 +318,10 @@ def decode(self, input, final=False): # decode input (taking the buffer into account) - data = self.buffer + input + if isinstance(input, int): + data = self.buffer + bytes((input,)) + else: + data = self.buffer + input (result, consumed) = self._buffer_decode(data, self.errors, final) # keep undecoded input until the next call self.buffer = data[consumed:]