diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-02-26 14:29:07 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-02-26 14:29:07 -0800 |
commit | 3f34ea48dbb5d0666f61a3e7db2504615e677757 (patch) | |
tree | b50769c51398e56ebdf94bdca59320ff772a2d67 /paramiko/proxy.py | |
parent | 8ddaac24ae746846a31153b8b93c275b30de8f0d (diff) | |
download | paramiko-3f34ea48dbb5d0666f61a3e7db2504615e677757.tar.gz |
Bunch more info fields
Diffstat (limited to 'paramiko/proxy.py')
-rw-r--r-- | paramiko/proxy.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/paramiko/proxy.py b/paramiko/proxy.py index a977b019..30d596ba 100644 --- a/paramiko/proxy.py +++ b/paramiko/proxy.py @@ -39,9 +39,8 @@ class ProxyCommand(object): Create a new CommandProxy instance. The instance created by this class can be passed as an argument to the `.Transport` class. - :param command_line: the command that should be executed and - used as the proxy. - :type command_line: str + :param str command_line: + the command that should be executed and used as the proxy. """ self.cmd = shlsplit(command_line) self.process = Popen(self.cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE) @@ -51,8 +50,7 @@ class ProxyCommand(object): Write the content received from the SSH client to the standard input of the forked command. - :param content: string to be sent to the forked command - :type content: str + :param str content: string to be sent to the forked command """ try: self.process.stdin.write(content) @@ -68,11 +66,9 @@ class ProxyCommand(object): """ Read from the standard output of the forked program. - :param size: how many chars should be read - :type size: int + :param int size: how many chars should be read - :return: the length of the read content - :rtype: int + :return: the length of the read content, as an `int` """ try: return os.read(self.process.stdout.fileno(), size) |