Avoid unprintable chars on Windows

Fixes #36
This commit is contained in:
Georgios Verigakis
2018-05-31 09:47:00 +03:00
parent a83f91f4b8
commit 5d52c5b299

View File

@@ -15,6 +15,9 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
from __future__ import unicode_literals from __future__ import unicode_literals
import sys
from . import Progress from . import Progress
from .helpers import WritelnMixin from .helpers import WritelnMixin
@@ -61,7 +64,10 @@ class FillingCirclesBar(ChargingBar):
class IncrementalBar(Bar): class IncrementalBar(Bar):
phases = (' ', '', '', '', '', '', '', '', '') if sys.platform.startswith('win'):
phases = (u' ', u'', u'')
else:
phases = (' ', '', '', '', '', '', '', '', '')
def update(self): def update(self):
nphases = len(self.phases) nphases = len(self.phases)