commit | 4a44f8791c153460bda8f4a5ea98cbba723911de | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Jan 26 21:19:59 2014 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sun Jan 26 21:19:59 2014 +0200 |
tree | 878b89c6946938d96dac8cde638a5a414d739232 | |
parent | 2403a787b98376205cd11469ddff292cbd41d601 [diff] |
Fixed a bug in previous changeset: StreamReader returned '' instead of u''.
diff --git a/Lib/codecs.py b/Lib/codecs.py index 79a918d..93c16c3 100644 --- a/Lib/codecs.py +++ b/Lib/codecs.py
@@ -470,8 +470,6 @@ 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: