diff options
author | Skip Montanaro <skip@pobox.com> | 2004-07-24 19:54:44 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2004-07-24 19:54:44 (GMT) |
commit | 3414c1ceeebd6a0cc00df147cfd3146821010194 (patch) | |
tree | 1c19c25ea53bbc640bb54d16fc2c01ece20e019f /Lib/mailbox.py | |
parent | 612eb09aaed6326d061b70311f1622ba1434757c (diff) | |
download | cpython-3414c1ceeebd6a0cc00df147cfd3146821010194.zip cpython-3414c1ceeebd6a0cc00df147cfd3146821010194.tar.gz cpython-3414c1ceeebd6a0cc00df147cfd3146821010194.tar.bz2 |
add missing newlines to read/readline.
fixes bug #996359.
Diffstat (limited to 'Lib/mailbox.py')
-rwxr-xr-x | Lib/mailbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/mailbox.py b/Lib/mailbox.py index dbb2724..ab40df7 100755 --- a/Lib/mailbox.py +++ b/Lib/mailbox.py @@ -56,10 +56,10 @@ class _Subfile: return data def read(self, length = None): - self._read(length, self.fp.read) + return self._read(length, self.fp.read) def readline(self, length = None): - self._read(length, self.fp.readline) + return self._read(length, self.fp.readline) def readlines(self, sizehint = -1): lines = [] |