summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-02-21 16:37:16 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-02-21 16:37:16 -0800
commit333dd249b01b059f8ecd887a515dd964bfbf7adb (patch)
tree422b2f23b1230576fefcc19a81d35359a988b7f6
parenta529e93256e300d8d07354d020e68ae7d45bdd45 (diff)
Start in on the SFTP section
-rw-r--r--paramiko/sftp_attr.py4
-rw-r--r--paramiko/sftp_client.py18
-rw-r--r--sites/docs/api/sftp.rst4
3 files changed, 13 insertions, 13 deletions
diff --git a/paramiko/sftp_attr.py b/paramiko/sftp_attr.py
index 37cdeba7..b8040399 100644
--- a/paramiko/sftp_attr.py
+++ b/paramiko/sftp_attr.py
@@ -26,8 +26,8 @@ class SFTPAttributes (object):
"""
Representation of the attributes of a file (or proxied file) for SFTP in
client or server mode. It attemps to mirror the object returned by
- ``os.stat`` as closely as possible, so it may have the following fields,
- with the same meanings as those returned by an ``os.stat`` object:
+ `os.stat` as closely as possible, so it may have the following fields,
+ with the same meanings as those returned by an `os.stat` object:
- st_size
- st_uid
- st_gid
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py
index d1d62233..b9d8744d 100644
--- a/paramiko/sftp_client.py
+++ b/paramiko/sftp_client.py
@@ -16,9 +16,6 @@
# along with Paramiko; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-"""
-Client-mode SFTP support.
-"""
from binascii import hexlify
import errno
@@ -49,12 +46,13 @@ def _to_unicode(s):
return s
-class SFTPClient (BaseSFTP):
+class SFTPClient(BaseSFTP):
"""
- SFTP client object. ``SFTPClient`` is used to open an sftp session across
- an open ssh `.Transport` and do remote file operations.
+ SFTP client object.
+
+ Used to open an SFTP session across an open SSH `.Transport` and perform
+ remote file operations.
"""
-
def __init__(self, sock):
"""
Create an SFTP client from an existing `.Channel`. The channel
@@ -782,6 +780,8 @@ class SFTPClient (BaseSFTP):
return self._cwd + '/' + path
-class SFTP (SFTPClient):
- "an alias for `.SFTPClient` for backwards compatability"
+class SFTP(SFTPClient):
+ """
+ An alias for `.SFTPClient` for backwards compatability.
+ """
pass
diff --git a/sites/docs/api/sftp.rst b/sites/docs/api/sftp.rst
index 2eedecf8..c016d73e 100644
--- a/sites/docs/api/sftp.rst
+++ b/sites/docs/api/sftp.rst
@@ -2,9 +2,9 @@ SFTP
====
.. automodule:: paramiko.sftp
-.. automodule:: paramiko.sftp_attr
.. automodule:: paramiko.sftp_client
+.. automodule:: paramiko.sftp_server
+.. automodule:: paramiko.sftp_attr
.. automodule:: paramiko.sftp_file
.. automodule:: paramiko.sftp_handle
-.. automodule:: paramiko.sftp_server
.. automodule:: paramiko.sftp_si