From d1ccb3368a8510f1fb9049dc01360a56fb3305bc Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 11 Sep 2017 22:39:00 -0400 Subject: [PATCH] unicode all the things Signed-off-by: Kenneth Reitz --- pipenv/progress.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pipenv/progress.py b/pipenv/progress.py index b590bda9..c793f4e3 100644 --- a/pipenv/progress.py +++ b/pipenv/progress.py @@ -12,15 +12,16 @@ from __future__ import absolute_import import sys import time +import crayons STREAM = sys.stderr -BAR_TEMPLATE = '%s[%s%s] %i/%i - %s\r' +BAR_TEMPLATE = u' %s%s%s %i/%i — {0}\r'.format(crayons.black('%s')) MILL_TEMPLATE = '%s %s %i/%i\r' DOTS_CHAR = '.' -BAR_FILLED_CHAR = '=' -BAR_EMPTY_CHAR = ' ' +BAR_FILLED_CHAR = crayons.green('❒', bold=True) +BAR_EMPTY_CHAR = crayons.black('❒') MILL_CHARS = ['|', '/', '-', '\\'] # How long to wait before recalculating the ETA