From 8f136dd7af0c95075c0a5b92ef1cb3c6572a1307 Mon Sep 17 00:00:00 2001 From: Christophe Date: Tue, 4 Apr 2017 13:09:25 +0200 Subject: [PATCH] fix #104 correct to_str -> to_unicode --- progressbar/bar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progressbar/bar.py b/progressbar/bar.py index 36bd3caa..7ddd541b 100644 --- a/progressbar/bar.py +++ b/progressbar/bar.py @@ -51,7 +51,7 @@ def __init__(self, fd=sys.stderr, **kwargs): def update(self, *args, **kwargs): ProgressBarMixinBase.update(self, *args, **kwargs) - line = converters.to_str('\r' + self._format_line()) + line = converters.to_unicode('\r' + self._format_line()) self.fd.write(line) def finish(self, *args, **kwargs): # pragma: no cover