def __init__(self, sock, autoCommit=False, bufferSize=8192): """Create stream. We get an extra `sock` argument, which is the socket which we'll stream output to (if we're streaming). """ ASStreamOut.__init__(self, autoCommit, bufferSize) self._socket = sock