Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
73c607aa
Commit
73c607aa
authored
8 years ago
by
Robert Jordens
Browse files
Options
Download
Email Patches
Plain Diff
build/tools: filter with line buffering
parent
6a788911
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
migen/build/tools.py
migen/build/tools.py
+2
-1
No files found.
migen/build/tools.py
View file @
73c607aa
...
...
@@ -58,7 +58,8 @@ def sub_rules(lines, rules, max_matches=1):
def
subprocess_call_filtered
(
command
,
rules
,
*
,
max_matches
=
1
,
**
kwargs
):
proc
=
subprocess
.
Popen
(
command
,
stdout
=
subprocess
.
PIPE
,
universal_newlines
=
True
,
**
kwargs
)
universal_newlines
=
True
,
bufsize
=
1
,
**
kwargs
)
with
proc
:
for
line
in
sub_rules
(
iter
(
proc
.
stdout
.
readline
,
""
),
rules
,
max_matches
):
...
...
This diff is collapsed.
Click to expand it.
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