Skip to content

Commit

Permalink
replace Windows line endings with \n
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed May 28, 2020
1 parent 0371fe5 commit c6cc9c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions colcon_core/task/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ async def run(
:rtype subprocess.CompletedProcess
"""
def stdout_callback(line):
if line.endswith(b'\r\n'):
line = line[:-2] + b'\n'
context.put_event_into_queue(StdoutLine(line))

def stderr_callback(line):
Expand Down

0 comments on commit c6cc9c9

Please sign in to comment.