Skip to content

Commit 2a0e7d1

Browse files
author
Dan
committed
Fix subprocess stdout gathering for py3
1 parent ee83fd6 commit 2a0e7d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

embedded_server/embedded_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ def check_channel_exec_request(self, channel, cmd,
113113
return True
114114

115115
def _read_response(self, channel, process):
116-
(output, _) = process.communicate()
117-
for line in output:
116+
for line in process.stdout:
118117
channel.send(line)
118+
process.communicate()
119119
channel.send_exit_status(process.returncode)
120120
logger.debug("Command finished with return code %s", process.returncode)
121121
# Let clients consume output from channel before closing

0 commit comments

Comments
 (0)