Mercurial > hg
changeset 43789:aea70ca7dd85
subrepo: use pycompat.open directly instead of importing open from pycompat
Differential Revision: https://phab.mercurial-scm.org/D7544
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Tue, 03 Dec 2019 17:10:10 -0800 |
parents | 1fe2e574616e |
children | 765a9c299c44 |
files | mercurial/subrepo.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/subrepo.py Fri Nov 22 10:39:05 2019 +0100 +++ b/mercurial/subrepo.py Tue Dec 03 17:10:10 2019 -0800 @@ -19,7 +19,6 @@ import xml.dom.minidom from .i18n import _ -from .pycompat import open from . import ( cmdutil, encoding, @@ -1434,7 +1433,7 @@ # which is mostly progress and useful info errpipe = None if self.ui.quiet: - errpipe = open(os.devnull, b'w') + errpipe = pycompat.open(os.devnull, b'w') if self.ui._colormode and len(commands) and commands[0] == b"diff": # insert the argument in the front, # the end of git diff arguments is used for paths