summaryrefslogtreecommitdiff
path: root/paramiko/proxy.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-02-26 14:29:07 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-02-26 14:29:07 -0800
commit3f34ea48dbb5d0666f61a3e7db2504615e677757 (patch)
treeb50769c51398e56ebdf94bdca59320ff772a2d67 /paramiko/proxy.py
parent8ddaac24ae746846a31153b8b93c275b30de8f0d (diff)
downloadparamiko-3f34ea48dbb5d0666f61a3e7db2504615e677757.tar.gz
Bunch more info fields
Diffstat (limited to 'paramiko/proxy.py')
-rw-r--r--paramiko/proxy.py14
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)