Mercurial > hg-stable
changeset 45012:484e04dc7f42
ui: replace `self._ferr` with identical `dest`
Originally, it was part of a larger change that was abandoned. IMHO it makes the
code slightly cleaner and saves one attribute access, so I decided to send it
anyway instead of throwing it away.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Thu, 04 Jun 2020 06:44:00 +0200 |
parents | 65d19d9c8e76 |
children | 98f97026fa05 |
files | mercurial/ui.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Sat Jun 20 11:51:34 2020 +0530 +++ b/mercurial/ui.py Thu Jun 04 06:44:00 2020 +0200 @@ -1200,7 +1200,7 @@ dest.write(msg) # stderr may be buffered under win32 when redirected to files, # including stdout. - if dest is self._ferr and not getattr(self._ferr, 'closed', False): + if dest is self._ferr and not getattr(dest, 'closed', False): dest.flush() except IOError as err: if dest is self._ferr and err.errno in (