more progress on windows

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-14 12:56:42 -04:00
parent bf51af691a
commit fdef9c9657
+1 -1
View File
@@ -28,7 +28,7 @@ else:
BAR_FILLED_CHAR = '='
BAR_EMPTY_CHAR = '-'
if sys.version_info[0] >= 3:
if (sys.version_info[0] >= 3) and (os.name != 'nt'):
BAR_TEMPLATE = u' %s%s%s %i/%i{0}\r'.format(crayons.black('%s'))
else:
BAR_TEMPLATE = ' %s%s%s %i/%i%s\r'