Mercurial > hg > mercurial-source
changeset 33589:3a4c677cbd6e
profile: remove now useless indent
We no longer rely on the value of '_output' so we can remove this conditional.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 12 Jun 2017 17:15:43 +0200 |
parents | 2b0fc56840d0 |
children | 54b356d65079 |
files | mercurial/profiling.py |
diffstat | 1 files changed, 7 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/profiling.py +++ b/mercurial/profiling.py @@ -213,14 +213,13 @@ if self._profiler is None: return self._profiler.__exit__(exception_type, exception_value, traceback) - if self._output: - if self._output == 'blackbox': - val = 'Profile:\n%s' % self._fp.getvalue() - # ui.log treats the input as a format string, - # so we need to escape any % signs. - val = val.replace('%', '%%') - self._ui.log('profile', val) - self._closefp() + if self._output == 'blackbox': + val = 'Profile:\n%s' % self._fp.getvalue() + # ui.log treats the input as a format string, + # so we need to escape any % signs. + val = val.replace('%', '%%') + self._ui.log('profile', val) + self._closefp() def _closefp(self): if self._fpdoclose and self._fp is not None: