From 5d28b9a3797aa302d7779e518d556e1671a67830 Mon Sep 17 00:00:00 2001 From: Eric Arellano Date: Sun, 12 Aug 2018 23:13:06 -0700 Subject: [PATCH] Fix console_task's console_separator unicode issues --- src/python/pants/task/console_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/pants/task/console_task.py b/src/python/pants/task/console_task.py index c3adee81d8f..b41b49cd571 100644 --- a/src/python/pants/task/console_task.py +++ b/src/python/pants/task/console_task.py @@ -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')