From: Jeremy Thurgood Date: Sun, 11 May 2014 09:21:21 +0000 (+0200) Subject: Minor flake8 fixes. X-Git-Tag: 0.1~438 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=9706392ed5399211d614c304ed91cbf37baefe1e;p=naja.git Minor flake8 fixes. --- diff --git a/pyweek_upload.py b/pyweek_upload.py index f9201be..15eff87 100644 --- a/pyweek_upload.py +++ b/pyweek_upload.py @@ -73,7 +73,7 @@ class Progress(object): chunk = self.data.read(1024) self.sent += len(chunk) - #print (self.num, self.stepsize, self.total, self.sent, self.tosend) + # print (self.num, self.stepsize, self.total, self.sent, self.tosend) if self.num % self.stepsize: return chunk @@ -98,8 +98,8 @@ class Progress(object): M = M % 60 S = eta % 60 if self.total: - s = '%s %2d%% (ETA %02d:%02d:%02d)' % (self.info, - self.num * 100. / self.total, H, M, S) + s = '%s %2d%% (ETA %02d:%02d:%02d)' % ( + self.info, self.num * 100. / self.total, H, M, S) else: s = '%s 0%% (ETA %02d:%02d:%02d)' % (self.info, H, M, S) elif self.total: