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
8d68a3df
Commit
8d68a3df
authored
6 years ago
by
Robert Jordens
Browse files
Options
Download
Email Patches
Plain Diff
build/tools: ignore bad encoding when coloring
do not replace characters as that chokes colorama...
parent
e4598001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
migen/build/tools.py
migen/build/tools.py
+1
-1
No files found.
migen/build/tools.py
View file @
8d68a3df
...
...
@@ -52,6 +52,6 @@ def subprocess_call_filtered(command, rules, *, max_matches=1, **kwargs):
universal_newlines
=
True
,
bufsize
=
1
,
**
kwargs
)
with
proc
:
for
line
in
open
(
proc
.
stdout
.
fileno
(),
errors
=
"
replac
e"
):
for
line
in
open
(
proc
.
stdout
.
fileno
(),
errors
=
"
ignor
e"
):
print
(
sub_rules
(
line
,
rules
,
max_matches
),
end
=
""
)
return
proc
.
returncode
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