Skip to content

Commit

Permalink
Fix console_task's console_separator unicode issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Arellano committed Aug 17, 2018
1 parent a8674f9 commit 5d28b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pants/task/console_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def register_options(cls, register):

def __init__(self, *args, **kwargs):
super(ConsoleTask, self).__init__(*args, **kwargs)
self._console_separator = self.get_options().sep.decode('unicode_escape')
self._console_separator = self.get_options().sep.encode('unicode_escape').decode('utf-8')
if self.get_options().output_file:
try:
self._outstream = safe_open(os.path.abspath(self.get_options().output_file), 'wb')
Expand Down

0 comments on commit 5d28b9a

Please sign in to comment.