Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
e0995a67
Commit
e0995a67
authored
Jan 20, 2016
by
Davis E. King
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #71 from paulinus/handle-no-encoding
Decode message only if encoding is known
parents
c8c55a89
05e24715
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
setup.py
setup.py
+1
-0
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