Commit afa39984 authored by Daniel Brown's avatar Daniel Brown

more unicode updates

parent c792251e
......@@ -318,7 +318,12 @@ class ProgressBar(object):
now = time.time()
self.seconds_elapsed = now - self.start_time
self.next_update = self.currval + self.update_interval
self.fd.write('\r' + self._format_line().encode(self.fd.encoding, 'replace'))
enc = self.fd.encoding
if enc is None: enc = sys.getfilesystemencoding()
self.fd.write('\r' + self._format_line().encode(enc, 'replace'))
self.last_update_time = now
def start(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment