#NEWLINE# def __init__( self , sock , chunk_type , isatty = True , mask_broken_pipe = False ) : #NEWLINE# #INDENT# "\n    :param socket sock: A connected socket capable of speaking the nailgun protocol.\n    :param str chunk_type: A ChunkType constant representing the nailgun protocol chunk type.\n    :param bool isatty: Whether or not the consumer of this stream has tty capabilities. (Optional)\n    :param bool mask_broken_pipe: This will toggle the masking of 'broken pipe' errors when writing\n                                  to the remote socket. This allows for completion of execution in\n                                  the event of a client disconnect (e.g. to support cleanup work).\n    " #NEWLINE# self . _socket = sock #NEWLINE# self . _chunk_type = chunk_type #NEWLINE# self . _isatty = isatty #NEWLINE# self . _mask_broken_pipe = isatty