Skip to content

Commit

Permalink
Tweak some off-spec or busted docstring bits
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Dec 18, 2015
1 parent 9a87a8e commit 5553764
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions paramiko/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,29 +123,29 @@ def readable(self):
"""
Check if the file can be read from.
:return:
`True` if the file can be read from. If `False`, :meth`read` will
raise an exception
:returns:
`True` if the file can be read from. If `False`, `read` will raise
an exception.
"""
return (self._flags & self.FLAG_READ) == self.FLAG_READ

def writable(self):
"""
Check if the file can be written to.
:return:
`True` if the file can be written to. If `False`, :meth:`write`
will raise an exception
:returns:
`True` if the file can be written to. If `False`, `write` will
raise an exception.
"""
return (self._flags & self.FLAG_WRITE) == self.FLAG_WRITE

def seekable(self):
"""
Check if the file supports random access.
:return:
`True` if the file supports random access. If `False`,
:meth:`seek` will raise an exception
:returns:
`True` if the file supports random access. If `False`, `seek` will
raise an exception.
"""
return False

Expand All @@ -154,8 +154,8 @@ 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
:returns:
The number of bytes read.
"""
data = self.read(len(buff))
buff[:len(data)] = data
Expand Down

0 comments on commit 5553764

Please sign in to comment.