summaryrefslogtreecommitdiff
path: root/paramiko/sftp_handle.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-02-21 11:11:10 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-02-21 11:11:10 -0800
commit3f9270c0be18b09cd39279730eac125776adbedc (patch)
treed1f07354948a265339bc9229c0d1bc5f8c2865e2 /paramiko/sftp_handle.py
parentf40bf59ff3d18e7a0d8cdf685df09efaeb3b126e (diff)
downloadparamiko-3f9270c0be18b09cd39279730eac125776adbedc.tar.gz
Mass SnR of class refs with dotted ones.
Boo on Sphinx for not letting me just change this behavior by default. There are a handful of incorrect items here that will get tweaked later.
Diffstat (limited to 'paramiko/sftp_handle.py')
-rw-r--r--paramiko/sftp_handle.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/paramiko/sftp_handle.py b/paramiko/sftp_handle.py
index c591b318..3b3c6b45 100644
--- a/paramiko/sftp_handle.py
+++ b/paramiko/sftp_handle.py
@@ -76,7 +76,7 @@ class SFTPHandle (object):
to be 64 bits.
If the end of the file has been reached, this method may return an
- empty string to signify EOF, or it may also return :class:`SFTP_EOF`.
+ empty string to signify EOF, or it may also return :class:`.SFTP_EOF`.
The default implementation checks for an attribute on ``self`` named
``readfile``, and if present, performs the read operation on the python
@@ -124,7 +124,7 @@ class SFTPHandle (object):
:type offset: int or long
:param data: data to write into the file.
:type data: str
- :return: an SFTP error code like :class:`SFTP_OK`.
+ :return: an SFTP error code like :class:`.SFTP_OK`.
"""
writefile = getattr(self, 'writefile', None)
if writefile is None:
@@ -148,13 +148,13 @@ class SFTPHandle (object):
def stat(self):
"""
- Return an :class:`SFTPAttributes` object referring to this open file, or an
+ Return an :class:`.SFTPAttributes` object referring to this open file, or an
error code. This is equivalent to :class:`SFTPServerInterface.stat`, except
it's called on an open file instead of a path.
:return: an attributes object for the given file, or an SFTP error
- code (like :class:`SFTP_PERMISSION_DENIED`).
- :rtype: :class:`SFTPAttributes` or error code
+ code (like :class:`.SFTP_PERMISSION_DENIED`).
+ :rtype: :class:`.SFTPAttributes` or error code
"""
return SFTP_OP_UNSUPPORTED
@@ -165,8 +165,8 @@ class SFTPHandle (object):
check for the presence of fields before using them.
:param attr: the attributes to change on this file.
- :type attr: :class:`SFTPAttributes`
- :return: an error code like :class:`SFTP_OK`.
+ :type attr: :class:`.SFTPAttributes`
+ :return: an error code like :class:`.SFTP_OK`.
:rtype: int
"""
return SFTP_OP_UNSUPPORTED