Mercurial > public > mercurial-scm > hg
diff hgext/convert/hg.py @ 52392:4c70a70a9bcd
convert: stop using the `pycompat.open()` shim
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 05 Dec 2024 13:15:44 -0500 |
parents | f4733654f144 |
children | 73ab542565e0 |
line wrap: on
line diff
--- a/hgext/convert/hg.py Thu Dec 05 13:11:41 2024 -0500 +++ b/hgext/convert/hg.py Thu Dec 05 13:15:44 2024 -0500 @@ -24,7 +24,6 @@ import time from mercurial.i18n import _ -from mercurial.pycompat import open from mercurial.node import ( bin, hex, @@ -707,7 +706,7 @@ def converted(self, rev, destrev): if self.convertfp is None: - self.convertfp = open(self.repo.vfs.join(b'shamap'), b'ab') + self.convertfp = open(self.repo.vfs.join(b'shamap'), 'ab') self.convertfp.write(util.tonativeeol(b'%s %s\n' % (destrev, rev))) self.convertfp.flush()