From a17760e223e9c2e4d21e2afe5d6ce2a37b196bdf Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Tue, 12 Mar 2019 02:00:35 -0400 Subject: [PATCH] Update dummy spinner Signed-off-by: Dan Ryan --- pipenv/vendor/vistir/spin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipenv/vendor/vistir/spin.py b/pipenv/vendor/vistir/spin.py index d7b6dfa6..877ece82 100644 --- a/pipenv/vendor/vistir/spin.py +++ b/pipenv/vendor/vistir/spin.py @@ -147,6 +147,7 @@ class DummySpinner(object): else: stdout = sys.stdout stdout.write(decode_output(u"\r", target_stream=stdout)) + text = to_text(text) line = decode_output(u"{0}\n".format(text), target_stream=stdout) stdout.write(line) stdout.write(CLEAR_LINE) @@ -154,6 +155,7 @@ class DummySpinner(object): def write_err(self, text=None): if text is None or isinstance(text, six.string_types) and text == "None": pass + text = to_text(text) if not self.stderr.closed: stderr = self.stderr else: