mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Fix a few places where a str instead of a bytes object was used.
This commit is contained in:
parent
57b93ad56d
commit
2b08b38dea
2 changed files with 5 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue