Fixed download ETA for Python 2.6.

This commit is contained in:
Jakub Roztocil 2013-05-14 12:49:29 +02:00
parent 7f624e61b5
commit 5af88756a6

View File

@ -382,7 +382,7 @@ class ProgressReporterThread(threading.Thread):
s = int((self.status.total_size - downloaded) / speed)
h, s = divmod(s, 60 * 60)
m, s = divmod(s, 60)
eta = '{}:{:0>2}:{:0>2}'.format(h, m, s)
eta = '{0}:{1:0>2}:{2:0>2}'.format(h, m, s)
self._status_line = PROGRESS.format(
percentage=percentage,