summaryrefslogtreecommitdiffstats
path: root/Lib/io.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-08 20:18:39 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-08 20:18:39 (GMT)
commit2b08b38deacc065b4fea8421528de1eed66d56b0 (patch)
treec85bfda4933486d96b8466115f16df9df98fbff0 /Lib/io.py
parent57b93ad56d570c27bd3de3820b996352121c18e2 (diff)
downloadcpython-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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 2b85da7..4ac4e45 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -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):