# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: dwayne@oscl.ca-20071206194213-5p8f62gva4i6v9us
# target_branch: http://www.lag.net/paramiko/bzr/paramiko/
# testament_sha1: dd8f0633588ee0719fd71370eb18394f419bb76b
# timestamp: 2007-12-06 13:47:47 -0600
# base_revision_id: robey@lag.net-20071120052527-hloi0b30yngbay0x
# 
# Begin patch
=== modified file 'paramiko/client.py'
--- paramiko/client.py	2007-11-10 06:52:22 +0000
+++ paramiko/client.py	2007-12-06 19:42:13 +0000
@@ -299,7 +299,7 @@
         self._transport.close()
         self._transport = None
 
-    def exec_command(self, command):
+    def exec_command(self, command, bufsize=-1):
         """
         Execute a command on the SSH server.  A new L{Channel} is opened and
         the requested command is executed.  The command's input and output
@@ -308,6 +308,8 @@
         
         @param command: the command to execute
         @type command: str
+        @param bufsize: interpreted the same way as by the built-in C{file()} function in python
+        @type bufsize: int
         @return: the stdin, stdout, and stderr of the executing command
         @rtype: tuple(L{ChannelFile}, L{ChannelFile}, L{ChannelFile})
 
@@ -315,9 +317,9 @@
         """
         chan = self._transport.open_session()
         chan.exec_command(command)
-        stdin = chan.makefile('wb')
-        stdout = chan.makefile('rb')
-        stderr = chan.makefile_stderr('rb')
+        stdin = chan.makefile('wb', bufsize)
+        stdout = chan.makefile('rb', bufsize)
+        stderr = chan.makefile_stderr('rb', bufsize)
         return stdin, stdout, stderr
 
     def invoke_shell(self, term='vt100', width=80, height=24):

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWfKJifwAAcJfgEQQUef//39E
WAC/7//6UAP5Jpem7mZmZtuElEaGiaMp5GCTaap4ptEDR6TPUjIGglKm2gmmKn6U09JkaaAAAAAG
gEkJNJhTanlT2k0zQSaNGg02poB6QNBzAATJgATCYJhDAEYAEkkKfqaam9ExBlNGEGT1AAANDRAs
TZq5Wx9dXIpx0/bNqapUDK5qpSiQiiB82zZRmuEExcuNWg47WZgu+i0SnhIgeHRz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