summaryrefslogtreecommitdiff
path: root/paramiko/file.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2015-12-17 18:17:16 -0800
committerJeff Forcier <jeff@bitprophet.org>2015-12-17 18:17:16 -0800
commitddc6c4caaf0aa23d441b7fe413624f8fc38aa3d5 (patch)
treee3c85956cfea361a8f22e909e878eaacf5f5ac6f /paramiko/file.py
parent5553764fed7ee81cb5efb1a0927389bf9706b322 (diff)
downloadparamiko-ddc6c4caaf0aa23d441b7fe413624f8fc38aa3d5.tar.gz
Update rest of file re: s/return/returns/
Diffstat (limited to 'paramiko/file.py')
-rw-r--r--paramiko/file.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/paramiko/file.py b/paramiko/file.py
index 3d0acc1c..05f2d6e6 100644
--- a/paramiko/file.py
+++ b/paramiko/file.py
@@ -97,7 +97,7 @@ class BufferedFile (ClosingContextManager):
:raises StopIteration: when the end of the file is reached.
- :return: a line (`str`) read from the file.
+ :returns: a line (`str`) read from the file.
"""
line = self.readline()
if not line:
@@ -174,7 +174,7 @@ class BufferedFile (ClosingContextManager):
text data.
:param int size: maximum number of bytes to read
- :return:
+ :returns:
data read from the file (as bytes), or an empty string if EOF was
encountered immediately
"""
@@ -234,7 +234,7 @@ class BufferedFile (ClosingContextManager):
characters (``'\\0'``) if they occurred in the input.
:param int size: maximum length of returned string.
- :return:
+ :returns:
next line of the file, or an empty string if the end of the
file has been reached.
@@ -319,7 +319,7 @@ class BufferedFile (ClosingContextManager):
after rounding up to an internal buffer size) are read.
:param int sizehint: desired maximum number of bytes to read.
- :return: `list` of lines read from the file.
+ :returns: `list` of lines read from the file.
"""
lines = []
byte_count = 0
@@ -359,7 +359,7 @@ class BufferedFile (ClosingContextManager):
useful if the underlying file doesn't support random access, or was
opened in append mode.
- :return: file position (`number <int>` of bytes).
+ :returns: file position (`number <int>` of bytes).
"""
return self._pos