add missing newlines to read/readline.

fixes bug #996359.
This commit is contained in:
Skip Montanaro 2004-07-24 19:54:44 +00:00
parent 612eb09aae
commit 3414c1ceee
1 changed files with 2 additions and 2 deletions

View File

@ -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 = []