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
OpenDAS
dlib
Commits
2f7958e4
Commit
2f7958e4
authored
Aug 22, 2015
by
Ehsan Azarnasab
Browse files
decode process output as latin-1 for Python3 to also work
parent
fd75d43e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
setup.py
setup.py
+2
-1
No files found.
setup.py
View file @
2f7958e4
...
...
@@ -128,6 +128,7 @@ def enqueue_output(out, queue):
def
_log_buf
(
buf
):
if
not
buf
:
return
buf
=
buf
.
decode
(
"latin-1"
)
buf
=
buf
.
rstrip
()
lines
=
buf
.
splitlines
()
for
line
in
lines
:
...
...
@@ -158,7 +159,7 @@ def run_process(cmds, timeout=None):
try
:
buf
=
q
.
get
(
timeout
=
.
1
)
except
Empty
:
buf
=
''
buf
=
b
''
_log_buf
(
buf
)
elapsed
=
time
.
time
()
-
_time
if
timeout
and
elapsed
>
timeout
:
...
...
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