diff options
author | Adam Meily <meily.adam@gmail.com> | 2015-09-24 23:16:12 -0400 |
---|---|---|
committer | Adam Meily <meily.adam@gmail.com> | 2015-09-24 23:16:12 -0400 |
commit | 787839d3bc41cdd86905df6883b7de2b1bfb165a (patch) | |
tree | 1b88474836b6f431f6992fb6a302a02b6d053a28 /paramiko/file.py | |
parent | e9b9dcaa242d12f917fb44103d6493a686d409a8 (diff) | |
download | paramiko-787839d3bc41cdd86905df6883b7de2b1bfb165a.tar.gz |
add unit tests for file-like object methods and update changelog and docs
Diffstat (limited to 'paramiko/file.py')
-rw-r--r-- | paramiko/file.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/paramiko/file.py b/paramiko/file.py index 368dd1ee..43d1c008 100644 --- a/paramiko/file.py +++ b/paramiko/file.py @@ -150,6 +150,13 @@ class BufferedFile (ClosingContextManager): return False def readinto(self, buff): + """ + Read up to ``len(buff)`` bytes into :class:`bytearray` *buff* and + return the number of bytes read. + + :return: + the number of bytes read + """ data = self.read(len(buff)) buff[:len(data)] = data return len(data) |