##// END OF EJS Templates
cmdutil: stop using the `pycompat.open()` shim...
Matt Harbison -
r53267:00f5966f default
parent child Browse files
Show More
@@ -30,9 +30,6 from .node import (
30 nullrev,
30 nullrev,
31 short,
31 short,
32 )
32 )
33 from .pycompat import (
34 open,
35 )
36 from .thirdparty import attr
33 from .thirdparty import attr
37
34
38 # Force pytype to use the non-vendored package
35 # Force pytype to use the non-vendored package
@@ -1406,7 +1403,7 def makefileobj(ctx, pat, mode=b'wb', **
1406 fp = repo.ui.fin
1403 fp = repo.ui.fin
1407 return _unclosablefile(fp)
1404 return _unclosablefile(fp)
1408 fn = makefilename(ctx, pat, **props)
1405 fn = makefilename(ctx, pat, **props)
1409 return open(fn, mode)
1406 return open(fn, pycompat.sysstr(mode))
1410
1407
1411
1408
1412 def openstorage(repo, cmd, file_, opts, returnrevlog=False):
1409 def openstorage(repo, cmd, file_, opts, returnrevlog=False):
General Comments 0
You need to be logged in to leave comments. Login now