Mercurial > public > mercurial-scm > hg-stable
diff mercurial/ui.py @ 41768:aaad36b88298
cleanup: use () to wrap long lines instead of \
This is a little less brittle, and often helps indentation. In a
surprising number of cases the entire cleanup was deleting the \, as
the expression was *already* parenthesized in a workable way.
Differential Revision: https://phab.mercurial-scm.org/D5993
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 20 Feb 2019 19:28:51 -0500 |
parents | 97ab4cbb342e |
children | 8e364664a999 |
line wrap: on
line diff
--- a/mercurial/ui.py Sun Jan 13 20:13:22 2019 -0500 +++ b/mercurial/ui.py Wed Feb 20 19:28:51 2019 -0500 @@ -344,8 +344,8 @@ try: yield finally: - self._blockedtimes[key + '_blocked'] += \ - (util.timer() - starttime) * 1000 + self._blockedtimes[key + '_blocked'] += ( + (util.timer() - starttime) * 1000) @contextlib.contextmanager def uninterruptible(self): @@ -1027,8 +1027,8 @@ except IOError as err: raise error.StdioError(err) finally: - self._blockedtimes['stdio_blocked'] += \ - (util.timer() - starttime) * 1000 + self._blockedtimes['stdio_blocked'] += ( + (util.timer() - starttime) * 1000) def write_err(self, *args, **opts): self._write(self._ferr, *args, **opts) @@ -1078,8 +1078,8 @@ return raise error.StdioError(err) finally: - self._blockedtimes['stdio_blocked'] += \ - (util.timer() - starttime) * 1000 + self._blockedtimes['stdio_blocked'] += ( + (util.timer() - starttime) * 1000) def _writemsg(self, dest, *args, **opts): _writemsgwith(self._write, dest, *args, **opts) @@ -1103,8 +1103,8 @@ if err.errno not in (errno.EPIPE, errno.EIO, errno.EBADF): raise error.StdioError(err) finally: - self._blockedtimes['stdio_blocked'] += \ - (util.timer() - starttime) * 1000 + self._blockedtimes['stdio_blocked'] += ( + (util.timer() - starttime) * 1000) def _isatty(self, fh): if self.configbool('ui', 'nontty'):