Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Num decorator_list FunctionDef arguments args NameParam defaults body Return decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad ListLoad ListLoad ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad TupleLoad ListLoad AttributeLoad NameLoad attr ListLoad ListLoad TupleLoad ListLoad AttributeLoad NameLoad attr ListLoad ListLoad Assign AttributeStore NameLoad attr ListLoad BinOpMult Str Num Str With Call AttributeLoad AttributeLoad NameLoad attr attr body While UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult Str Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr 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 inspect N/A io N/A os N/A socket N/A time N/A unittest N/A mock pants.java.nailgun_io NailgunStreamReader NailgunStreamWriter pants.java.nailgun_protocol ChunkType NailgunProtocol N/A PATCH_OPTS N/A dict autospec True spec_set True FakeFile N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self content N/A write N/A N/A self val N/A N/A N/A N/A self content val N/A fileno N/A N/A self N/A N/A N/A -1 N/A flush N/A N/A self N/A N/A N/A N/A N/A TestNailgunStreamReader N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self in_fd N/A FakeFile N/A N/A self mock_socket N/A N/A mock Mock N/A N/A self reader N/A NailgunStreamReader in_fd N/A self in_fd sock N/A self mock_socket N/A test_stop N/A N/A self N/A N/A N/A N/A N/A self assertFalse N/A N/A self reader is_stopped N/A N/A N/A N/A self reader stop N/A N/A N/A self assertTrue N/A N/A self reader is_stopped N/A N/A N/A N/A self reader run N/A test_startable N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A inspect ismethod N/A N/A self reader start N/A test_run_stop_on_error N/A N/A self mock_select N/A N/A N/A N/A mock_select return_value N/A N/A N/A N/A N/A self in_fd N/A N/A N/A N/A self reader run N/A N/A N/A self assertTrue N/A N/A self reader is_stopped N/A N/A N/A self assertEquals N/A mock_select call_count 1 N/A N/A N/A mock patch select.select test_run_read_write N/A N/A self mock_writer mock_select mock_read N/A N/A N/A N/A mock_select side_effect N/A N/A N/A N/A self in_fd N/A N/A N/A N/A N/A self in_fd N/A N/A N/A N/A mock_read side_effect N/A N/A A 300 N/A N/A N/A N/A self reader running N/A N/A N/A N/A N/A self reader is_stopped N/A N/A N/A N/A time sleep 0.01 N/A N/A N/A self assertTrue N/A N/A self reader is_stopped N/A N/A N/A mock_read assert_called_with -1 N/A io DEFAULT_BUFFER_SIZE N/A N/A N/A self assertEquals N/A mock_read call_count 2 N/A N/A N/A N/A N/A self mock_socket shutdown assert_called_once_with N/A socket SHUT_WR N/A N/A N/A mock_writer assert_has_calls N/A N/A N/A mock call N/A mock ANY N/A ChunkType STDIN N/A A 300 N/A N/A mock call N/A mock ANY N/A ChunkType STDIN_EOF N/A N/A N/A mock patch os.read N/A N/A mock patch select.select N/A N/A N/A mock patch object NailgunProtocol write_chunk N/A TestNailgunStreamWriter N/A N/A unittest TestCase N/A N/A TEST_VALUE 1729 setUp N/A N/A self N/A N/A N/A N/A self chunk_type N/A ChunkType STDERR N/A N/A self mock_socket N/A N/A mock Mock N/A N/A self writer N/A NailgunStreamWriter N/A self mock_socket N/A self chunk_type N/A test_write N/A N/A self mock_writer N/A N/A N/A N/A N/A N/A self writer write N/A self TEST_VALUE N/A N/A N/A mock_writer assert_called_once_with N/A self mock_socket N/A self chunk_type N/A self TEST_VALUE N/A N/A N/A N/A mock patch object NailgunProtocol write_chunk test_write_broken_pipe_unmasked N/A N/A self mock_writer N/A N/A N/A N/A mock_writer side_effect N/A IOError N/A errno EPIPE N/A N/A os strerror N/A errno EPIPE N/A N/A N/A self assertRaises IOError N/A N/A N/A N/A N/A self writer write N/A self TEST_VALUE N/A N/A N/A N/A mock patch object NailgunProtocol write_chunk test_write_broken_pipe_masked N/A N/A self mock_writer N/A N/A N/A N/A self writer N/A NailgunStreamWriter N/A self mock_socket N/A self chunk_type mask_broken_pipe True N/A N/A mock_writer side_effect N/A IOError N/A errno EPIPE N/A N/A os strerror N/A errno EPIPE N/A N/A N/A N/A self writer write N/A self TEST_VALUE N/A N/A N/A N/A mock patch object NailgunProtocol write_chunk test_isatty N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A self writer isatty N/A test_not_isatty N/A N/A self N/A N/A N/A N/A self writer N/A NailgunStreamWriter N/A self mock_socket N/A self chunk_type isatty False N/A N/A N/A self assertFalse N/A N/A N/A self writer isatty N/A test_misc N/A N/A self N/A N/A N/A N/A N/A N/A self writer flush N/A N/A