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
e0995a67
Commit
e0995a67
authored
Jan 20, 2016
by
Davis E. King
Browse files
Merge pull request #71 from paulinus/handle-no-encoding
Decode message only if encoding is known
parents
c8c55a89
05e24715
Changes
1
Show 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 @
e0995a67
...
@@ -265,6 +265,7 @@ def enqueue_output(out, queue):
...
@@ -265,6 +265,7 @@ def enqueue_output(out, queue):
def
_log_buf
(
buf
):
def
_log_buf
(
buf
):
if
not
buf
:
if
not
buf
:
return
return
if
sys
.
stdout
.
encoding
:
buf
=
buf
.
decode
(
sys
.
stdout
.
encoding
)
buf
=
buf
.
decode
(
sys
.
stdout
.
encoding
)
buf
=
buf
.
rstrip
()
buf
=
buf
.
rstrip
()
lines
=
buf
.
splitlines
()
lines
=
buf
.
splitlines
()
...
...
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