Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
ea896cfa
Commit
ea896cfa
authored
Jan 20, 2025
by
Jonas Kaufmann
Browse files
symphony/runtime/command_exector.py: read more than a single line at once
parent
98dbc60a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
symphony/runtime/simbricks/runtime/command_executor.py
symphony/runtime/simbricks/runtime/command_executor.py
+1
-1
No files found.
symphony/runtime/simbricks/runtime/command_executor.py
View file @
ea896cfa
...
@@ -89,7 +89,7 @@ class CommandExecutor:
...
@@ -89,7 +89,7 @@ class CommandExecutor:
self
,
stream
:
asyncio
.
StreamReader
,
consume_fn
:
typing
.
Callable
[[
bytes
],
None
]
self
,
stream
:
asyncio
.
StreamReader
,
consume_fn
:
typing
.
Callable
[[
bytes
],
None
]
)
->
None
:
)
->
None
:
while
True
:
while
True
:
bs
=
await
stream
.
read
line
(
)
bs
=
await
stream
.
read
(
4096
)
if
bs
:
if
bs
:
await
consume_fn
(
bs
)
await
consume_fn
(
bs
)
else
:
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment