From f7b0a62e4ba7a2ad0ba3c92aae8ce79ee539f6cf Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Sun, 6 Feb 2005 23:32:22 +0000 Subject: [PATCH] [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-144] fix docs clean up some of the docs. --- README | 1 + paramiko/pkey.py | 6 +++--- paramiko/sftp_attr.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README b/README index b06d6da..36618a2 100644 --- a/README +++ b/README @@ -222,3 +222,4 @@ v0.9 FEAROW * ctr forms of ciphers are missing (blowfish-ctr, aes128-ctr, aes256-ctr) * server mode needs better documentation * add method to block until a channel's "exit-status" is set +* the error message from this is confusing as hell: DSSKey() diff --git a/paramiko/pkey.py b/paramiko/pkey.py index a872ae8..9ea781b 100644 --- a/paramiko/pkey.py +++ b/paramiko/pkey.py @@ -169,7 +169,7 @@ class PKey (object): @param msg: an SSH signature message @type msg: L{Message} @return: C{True} if the signature verifies correctly; C{False} - otherwise. + otherwise. @rtype: boolean """ return False @@ -186,14 +186,14 @@ class PKey (object): @param filename: name of the file to read. @type filename: str @param password: an optional password to use to decrypt the key file, - if it's encrypted + if it's encrypted @type password: str @return: a new key object based on the given private key. @rtype: L{PKey} @raise IOError: if there was an error reading the file. @raise PasswordRequiredException: if the private key file is - encrypted, and C{password} is C{None}. + encrypted, and C{password} is C{None}. @raise SSHException: if the key file is invalid. @since: fearow diff --git a/paramiko/sftp_attr.py b/paramiko/sftp_attr.py index 5051686..f1cfaf6 100644 --- a/paramiko/sftp_attr.py +++ b/paramiko/sftp_attr.py @@ -148,7 +148,7 @@ class SFTPAttributes (object): if hasattr(self, 'st_uid') or hasattr(self, 'st_gid'): out += 'uid=%d gid=%d ' % (getattr(self, 'st_uid', 0), getattr(self, 'st_gid', 0)) if hasattr(self, 'st_mode'): - out += 'mode=%d ' % self.st_mode + out += 'mode=' + oct(self.st_mode) if hasattr(self, 'st_atime') or hasattr(self, 'st_mtime'): out += 'atime=%d mtime=%d ' % (getattr(self, 'st_atime', 0), getattr(self, 'st_mtime', 0))