Submitter | Pierre-Yves David |
---|---|
Date | June 12, 2017, 4:17 p.m. |
Message ID | <ffbf377689412a98a606.1497284265@nodosa.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/21344/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/profiling.py b/mercurial/profiling.py --- a/mercurial/profiling.py +++ b/mercurial/profiling.py @@ -218,4 +218,7 @@ class profile(object): # so we need to escape any % signs. val = val.replace('%', '%%') self._ui.log('profile', val) - self._fp.close() + self._closefp() + + def _closefp(self): + self._fp.close()