From 3414c1ceeebd6a0cc00df147cfd3146821010194 Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Sat, 24 Jul 2004 19:54:44 +0000 Subject: add missing newlines to read/readline. fixes bug #996359. --- Lib/mailbox.py | 4 ++-- 1 file 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 = [] -- cgit v0.12