[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-78]

fix rbuffer -> _rbuffer in 3 places i missed
fix 3 places where "rbuffer" hadn't been converted to "_rbuffer".  thanks to
kevin c. dorff for the bug report.
This commit is contained in:
Robey Pointer 2004-09-09 01:36:45 +00:00
parent ff6ff88209
commit caa1f88105
1 changed files with 3 additions and 3 deletions

View File

@ -121,8 +121,8 @@ class BufferedFile (object):
raise IOError('File not open for reading')
if (size is None) or (size < 0):
# go for broke
result = self.rbuffer
self.rbuffer = ''
result = self._rbuffer
self._rbuffer = ''
self._pos += len(result)
while 1:
try:
@ -191,7 +191,7 @@ class BufferedFile (object):
if (size is not None) and (size >= 0):
if len(line) >= size:
# truncate line and return
self.rbuffer = line[size:]
self._rbuffer = line[size:]
line = line[:size]
self._pos += len(line)
return line