##// END OF EJS Templates
subrepo: use pycompat.open directly instead of importing open from pycompat...
Kyle Lippincott -
r44228:aea70ca7 default
parent child Browse files
Show More
@@ -19,7 +19,6 b' import tarfile'
19 import xml.dom.minidom
19 import xml.dom.minidom
20
20
21 from .i18n import _
21 from .i18n import _
22 from .pycompat import open
23 from . import (
22 from . import (
24 cmdutil,
23 cmdutil,
25 encoding,
24 encoding,
@@ -1434,7 +1433,7 b' class gitsubrepo(abstractsubrepo):'
1434 # which is mostly progress and useful info
1433 # which is mostly progress and useful info
1435 errpipe = None
1434 errpipe = None
1436 if self.ui.quiet:
1435 if self.ui.quiet:
1437 errpipe = open(os.devnull, b'w')
1436 errpipe = pycompat.open(os.devnull, b'w')
1438 if self.ui._colormode and len(commands) and commands[0] == b"diff":
1437 if self.ui._colormode and len(commands) and commands[0] == b"diff":
1439 # insert the argument in the front,
1438 # insert the argument in the front,
1440 # the end of git diff arguments is used for paths
1439 # the end of git diff arguments is used for paths
General Comments 0
You need to be logged in to leave comments. Login now