(self, host=None, port=None, timeout=None)
Setup a stream connection.
        This connection will be used by the routines:
            read, readline, send, shutdown.
Setup a stream connection.
        This connection will be used by the routines:
            read, readline, send, shutdown.
Setup a stream connection . This connection will be used by the routines : read readline send shutdown .
def open(self, host=None, port=None, timeout=None):
        """Setup a stream connection.
        This connection will be used by the routines:
            read, readline, send, shutdown.
        """
        self.host = None        # For compatibility with parent class
        self.port = None
        self.sock = None
        self.file = None
        self.process = subprocess.Popen(self.command,
            bufsize=DEFAULT_BUFFER_SIZE,
            stdin=subprocess.PIPE, stdout=subprocess.PIPE,
            shell=True, close_fds=True)
        self.writefile = self.process.stdin
        self.readfile = self.process.stdout
def open ( self , host = None , port = None , timeout = None ) : self . host = None # For compatibility with parent class self . port = None self . sock = None self . file = None self . process = subprocess . Popen ( self . command , bufsize = DEFAULT_BUFFER_SIZE , stdin = subprocess . PIPE , stdout = subprocess . PIPE , shell = True , close_fds = True ) self . writefile = self . process . stdin self . readfile = self . process . stdout