From caa1f881056b8378cb7058bf98769d2e36b59ada Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Thu, 9 Sep 2004 01:36:45 +0000 Subject: [PATCH] [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. --- paramiko/file.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paramiko/file.py b/paramiko/file.py index b6b8669..9a71ef8 100644 --- a/paramiko/file.py +++ b/paramiko/file.py @@ -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