summaryrefslogtreecommitdiff
path: root/paramiko/client.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-06-14 20:45:09 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-06-14 20:45:09 -0400
commit04505d5ead61d0aea866c36a89d3fbfb786b3206 (patch)
tree4d32a528daefe8f3583ad6ca046d1e48db3ded5f /paramiko/client.py
parent02175b034d91ef5fc4e86ab7379cdc2aacd7f3c4 (diff)
downloadparamiko-04505d5ead61d0aea866c36a89d3fbfb786b3206.tar.gz
Implement #322 - new ChannelFile subclass for stdin that calls shutdown_write on close()
Diffstat (limited to 'paramiko/client.py')
-rw-r--r--paramiko/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index 6bf479d4..a47efbfe 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -503,7 +503,7 @@ class SSHClient(ClosingContextManager):
if environment:
chan.update_environment(environment)
chan.exec_command(command)
- stdin = chan.makefile("wb", bufsize)
+ stdin = chan.makefile_stdin("wb", bufsize)
stdout = chan.makefile("r", bufsize)
stderr = chan.makefile_stderr("r", bufsize)
return stdin, stdout, stderr