Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Yield Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body While UnaryOpNot AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr ListLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Return If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Pass finalbody Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise decorator_list FunctionDef arguments args NameParam defaults body Return decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A errno N/A io N/A os N/A select N/A socket N/A threading contextlib contextmanager pants.java.nailgun_protocol ChunkType NailgunProtocol NailgunStreamReader N/A N/A threading Thread N/A N/A Reads input from stdin and emits Nailgun 'stdin' chunks over a socket. N/A SELECT_TIMEOUT 1 __init__ N/A N/A self in_fd sock buf_size select_timeout N/A N/A io DEFAULT_BUFFER_SIZE SELECT_TIMEOUT N/A N/A 
    :param file in_fd: the input file descriptor (e.g. sys.stdin) to read from.
    :param socket sock: the socket to emit nailgun protocol chunks over.
    :param int buf_size: the buffer size for reads from the file descriptor.
    :param int select_timeout: the timeout (in seconds) for select.select() calls against the fd.
     N/A N/A N/A N/A super NailgunStreamReader self __init__ N/A N/A self daemon True N/A N/A self _stdin in_fd N/A N/A self _socket sock N/A N/A self _buf_size buf_size N/A N/A self _select_timeout select_timeout N/A N/A self _stopped N/A N/A threading Event N/A is_stopped N/A N/A self N/A N/A N/A Indicates whether or not the instance is stopped. N/A N/A N/A N/A self _stopped is_set N/A property stop N/A N/A self N/A N/A N/A Stops the instance. N/A N/A N/A N/A self _stopped set N/A running N/A N/A self N/A N/A N/A N/A N/A self start N/A N/A N/A N/A N/A self stop N/A contextmanager run N/A N/A self N/A N/A N/A N/A N/A self is_stopped N/A N/A N/A readable _ errored N/A N/A select select N/A N/A self _stdin N/A N/A N/A self _stdin N/A self _select_timeout N/A N/A N/A self _stdin errored N/A N/A N/A N/A self stop N/A N/A N/A N/A N/A self is_stopped N/A N/A self _stdin readable N/A N/A data N/A N/A os read N/A N/A N/A self _stdin fileno N/A self _buf_size N/A N/A N/A self is_stopped N/A N/A data N/A N/A N/A N/A NailgunProtocol write_chunk N/A self _socket N/A ChunkType STDIN data N/A N/A N/A N/A NailgunProtocol write_chunk N/A self _socket N/A ChunkType STDIN_EOF N/A N/A N/A N/A N/A N/A N/A N/A self _socket shutdown N/A socket SHUT_WR N/A N/A N/A N/A socket error N/A N/A N/A N/A N/A N/A self stop N/A N/A NailgunStreamWriter N/A object N/A N/A A sys.{stdout,stderr} replacement that writes output to a socket using the nailgun protocol. __init__ N/A N/A self sock chunk_type isatty mask_broken_pipe N/A True False N/A N/A 
    :param socket sock: A connected socket capable of speaking the nailgun protocol.
    :param str chunk_type: A ChunkType constant representing the nailgun protocol chunk type.
    :param bool isatty: Whether or not the consumer of this stream has tty capabilities. (Optional)
    :param bool mask_broken_pipe: This will toggle the masking of 'broken pipe' errors when writing
                                  to the remote socket. This allows for completion of execution in
                                  the event of a client disconnect (e.g. to support cleanup work).
     N/A N/A self _socket sock N/A N/A self _chunk_type chunk_type N/A N/A self _isatty isatty N/A N/A self _mask_broken_pipe mask_broken_pipe N/A write N/A N/A self payload N/A N/A N/A N/A N/A N/A N/A NailgunProtocol write_chunk N/A self _socket N/A self _chunk_type payload N/A N/A N/A IOError N/A e N/A N/A N/A N/A N/A e errno N/A errno EPIPE N/A N/A self _mask_broken_pipe N/A N/A N/A flush N/A N/A self N/A N/A N/A N/A isatty N/A N/A self N/A N/A N/A N/A self _isatty N/A N/A