Fix a few places where a str instead of a bytes object was used.

This commit is contained in:
Guido van Rossum 2007-05-08 20:18:39 +00:00
parent 57b93ad56d
commit 2b08b38dea
2 changed files with 5 additions and 5 deletions

View file

@ -1047,7 +1047,7 @@ class TextIOWrapper(TextIOBase):
return self._encode_decoder_state(decoder_state, position)
saved_state = decoder.getstate()
try:
decoder.setstate(("", decoder_state))
decoder.setstate((b"", decoder_state))
n = 0
bb = bytes(1)
for i, bb[0] in enumerate(readahead):