Commit 4a44f879 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed a bug in previous changeset: StreamReader returned '' instead of u''.

parent 2403a787
......@@ -470,8 +470,6 @@ class StreamReader(Codec):
newdata = self.stream.read(size)
# decode bytes (those remaining from the last call included)
data = self.bytebuffer + newdata
if not data:
break
try:
newchars, decodedbytes = self.decode(data, self.errors)
except UnicodeDecodeError, exc:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment