From 5af88756a6d89a44c191225d58953204b11e1bc2 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Tue, 14 May 2013 12:49:29 +0200 Subject: [PATCH] Fixed download ETA for Python 2.6. --- httpie/downloads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpie/downloads.py b/httpie/downloads.py index 52563c92..11dc9324 100644 --- a/httpie/downloads.py +++ b/httpie/downloads.py @@ -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,