Mercurial > hg
comparison mercurial/progress.py @ 34486:a57c938e7ac8
style: never use a space before a colon or comma
Differential Revision: https://phab.mercurial-scm.org/D954
author | Alex Gaynor <agaynor@mozilla.com> |
---|---|
date | Fri, 29 Sep 2017 15:48:34 +0000 |
parents | a667f0ca1d5f |
children | 54fa3db5becf |
comparison
equal
deleted
inserted
replaced
34485:37b7581e5737 | 34486:a57c938e7ac8 |
---|---|
172 # cursor bounce between the right and left sides | 172 # cursor bounce between the right and left sides |
173 amt = self.indetcount % (2 * progwidth) | 173 amt = self.indetcount % (2 * progwidth) |
174 amt -= progwidth | 174 amt -= progwidth |
175 bar = (' ' * int(progwidth - abs(amt)) + '<=>' + | 175 bar = (' ' * int(progwidth - abs(amt)) + '<=>' + |
176 ' ' * int(abs(amt))) | 176 ' ' * int(abs(amt))) |
177 prog = ''.join(('[', bar , ']')) | 177 prog = ''.join(('[', bar, ']')) |
178 out = spacejoin(head, prog, tail) | 178 out = spacejoin(head, prog, tail) |
179 else: | 179 else: |
180 out = spacejoin(head, tail) | 180 out = spacejoin(head, tail) |
181 self._writeerr('\r' + encoding.trim(out, termwidth)) | 181 self._writeerr('\r' + encoding.trim(out, termwidth)) |
182 self.lasttopic = topic | 182 self.lasttopic = topic |