MCPcopy Create free account
hub / github.com/audacity/audacity / get_response

Function get_response

scripts/piped-work/pipe_test.py:56–65  ·  view source on GitHub ↗

Return the command response.

()

Source from the content-addressed store, hash-verified

54 TOFILE.flush()
55
56def get_response():
57 """Return the command response."""
58 result = ''
59 line = ''
60 while True:
61 result += line
62 line = FROMFILE.readline()
63 if line == '\n' and len(result) > 0:
64 break
65 return result
66
67def do_command(command):
68 """Send one command, and return the response."""

Callers 1

do_commandFunction · 0.70

Calls 1

readlineMethod · 0.80

Tested by

no test coverage detected