diff options
author | Guido van Rossum <guido@python.org> | 2007-05-08 20:18:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-08 20:18:39 (GMT) |
commit | 2b08b38deacc065b4fea8421528de1eed66d56b0 (patch) | |
tree | c85bfda4933486d96b8466115f16df9df98fbff0 /Lib/io.py | |
parent | 57b93ad56d570c27bd3de3820b996352121c18e2 (diff) | |
download | cpython-2b08b38deacc065b4fea8421528de1eed66d56b0.zip cpython-2b08b38deacc065b4fea8421528de1eed66d56b0.tar.gz cpython-2b08b38deacc065b4fea8421528de1eed66d56b0.tar.bz2 |
Fix a few places where a str instead of a bytes object was used.
Diffstat (limited to 'Lib/io.py')
-rw-r--r-- | Lib/io.py | 2 |
1 files changed, 1 insertions, 1 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): |