summaryrefslogtreecommitdiff
path: root/paramiko/file.py
diff options
context:
space:
mode:
authorAdam Meily <meily.adam@gmail.com>2015-09-24 23:16:12 -0400
committerAdam Meily <meily.adam@gmail.com>2015-09-24 23:16:12 -0400
commit787839d3bc41cdd86905df6883b7de2b1bfb165a (patch)
tree1b88474836b6f431f6992fb6a302a02b6d053a28 /paramiko/file.py
parente9b9dcaa242d12f917fb44103d6493a686d409a8 (diff)
downloadparamiko-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.py7
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)