Patchwork D7544: subrepo: use pycompat.open directly instead of importing open from pycompat

login
register
mail settings
Submitter phabricator
Date Dec. 4, 2019, 7:09 p.m.
Message ID <8a37fb452401018a696df5c8c56c9e81@localhost.localdomain>
Download mbox | patch
Permalink /patch/43581/
State Not Applicable
Headers show

Comments

phabricator - Dec. 4, 2019, 7:09 p.m.
Closed by commit rHGaea70ca7dd85: subrepo: use pycompat.open directly instead of importing open from pycompat (authored by spectral).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7544?vs=18468&id=18469

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7544/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7544

AFFECTED FILES
  mercurial/subrepo.py

CHANGE DETAILS




To: spectral, #hg-reviewers, dlax, mharbison72
Cc: mharbison72, mercurial-devel

Patch

diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -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