Return buffered data received on stdout and stderr channels. This is useful for non-interactive call where a set of command passed to the API call and their result is needed after the call is concluded. Should be called after run_forever() or update() TODO: Maybe we
(self)
| 175 | return self.readline_channel(STDERR_CHANNEL, timeout=timeout) |
| 176 | |
| 177 | def read_all(self): |
| 178 | """Return buffered data received on stdout and stderr channels. |
| 179 | This is useful for non-interactive call where a set of command passed |
| 180 | to the API call and their result is needed after the call is concluded. |
| 181 | Should be called after run_forever() or update() |
| 182 | |
| 183 | TODO: Maybe we can process this and return a more meaningful map with |
| 184 | channels mapped for each input. |
| 185 | """ |
| 186 | out = self._all.getvalue() |
| 187 | self._all = self._all.__class__() |
| 188 | self._channels = {} |
| 189 | return out |
| 190 | |
| 191 | def is_open(self): |
| 192 | """True if the connection is still alive.""" |
no test coverage detected