MCPcopy Index your code
hub / github.com/docker/docker-py / frames_iter_tty

Function frames_iter_tty

docker/utils/socket.py:127–137  ·  view source on GitHub ↗

Return a generator of data read from the socket when the tty setting is enabled.

(socket)

Source from the content-addressed store, hash-verified

125
126
127def frames_iter_tty(socket):
128 """
129 Return a generator of data read from the socket when the tty setting is
130 enabled.
131 """
132 while True:
133 result = read(socket)
134 if len(result) == 0:
135 # We have reached EOF
136 return
137 yield result
138
139
140def consume_socket_output(frames, demux=False):

Callers 1

frames_iterFunction · 0.85

Calls 1

readFunction · 0.85

Tested by

no test coverage detected