diff options
author | Robey Pointer <robey@lag.net> | 2004-09-09 01:36:45 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2004-09-09 01:36:45 +0000 |
commit | caa1f881056b8378cb7058bf98769d2e36b59ada (patch) | |
tree | 187efa1bed22b6aed077f454a3b12397609145f3 | |
parent | ff6ff88209e35ceb26d7044e1cdb687f52401feb (diff) |
[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.
-rw-r--r-- | paramiko/file.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/paramiko/file.py b/paramiko/file.py index b6b86691..9a71ef84 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 |