diff options
author | Robey Pointer <robey@lag.net> | 2006-09-30 20:44:55 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-09-30 20:44:55 -0700 |
commit | 64b89b6efd42e2a091655dd96231636518e0397c (patch) | |
tree | 7d3b82d23a08fbdc5e486621d0d4fcd58411ee4b | |
parent | 6e49ddbc44ec56de06c1a4d93acb2f429a494394 (diff) |
[project @ robey@lag.net-20061001034455-bf6880fdbd4dd29e]
trivial doc fixes
-rw-r--r-- | paramiko/file.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/paramiko/file.py b/paramiko/file.py index 1c151af4..d1a41869 100644 --- a/paramiko/file.py +++ b/paramiko/file.py @@ -23,8 +23,6 @@ BufferedFile. from cStringIO import StringIO - - class BufferedFile (object): """ Reusable base class to implement python-style file buffering around a @@ -116,16 +114,16 @@ class BufferedFile (object): file first). If the C{size} argument is negative or omitted, read all the remaining data in the file. - @param size: maximum number of bytes to read. + @param size: maximum number of bytes to read @type size: int @return: data read from the file, or an empty string if EOF was - encountered immediately. + encountered immediately @rtype: str """ if self._closed: raise IOError('File is closed') if not (self._flags & self.FLAG_READ): - raise IOError('File not open for reading') + raise IOError('File is not open for reading') if (size is None) or (size < 0): # go for broke result = self._rbuffer |