Logo Search packages:      
Sourcecode: paramiko version File versions  Download package

def paramiko::channel::Channel::recv_stderr_ready (   self  ) 

Returns true if data is buffered and ready to be read from this
channel's stderr stream.  Only channels using L{exec_command} or
L{invoke_shell} without a pty will ever have data on the stderr
stream.

@return: C{True} if a L{recv_stderr} call on this channel would
    immediately return at least one byte; C{False} otherwise.
@rtype: boolean

@since: 1.1

Definition at line 559 of file channel.py.

00559                                :
        """
        Returns true if data is buffered and ready to be read from this
        channel's stderr stream.  Only channels using L{exec_command} or
        L{invoke_shell} without a pty will ever have data on the stderr
        stream.
        
        @return: C{True} if a L{recv_stderr} call on this channel would
            immediately return at least one byte; C{False} otherwise.
        @rtype: boolean
        
        @since: 1.1
        """
        self.lock.acquire()
        try:
            if len(self.in_stderr_buffer) == 0:
                return False
            return True
        finally:
            self.lock.release()

    def recv_stderr(self, nbytes):


Generated by  Doxygen 1.6.0   Back to index