Mercurial > public > mercurial-scm > hg-stable
changeset 52425:10f98d358f6c
churn: stop using the `pycompat.open()` shim
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 05 Dec 2024 13:17:18 -0500 |
parents | 4c70a70a9bcd |
children | 4e58b5499860 |
files | hgext/churn.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/churn.py Thu Dec 05 13:15:44 2024 -0500 +++ b/hgext/churn.py Thu Dec 05 13:17:18 2024 -0500 @@ -15,7 +15,6 @@ import time from mercurial.i18n import _ -from mercurial.pycompat import open from mercurial import ( cmdutil, encoding, @@ -207,7 +206,7 @@ if not aliases and os.path.exists(repo.wjoin(b'.hgchurn')): aliases = repo.wjoin(b'.hgchurn') if aliases: - for l in open(aliases, b"rb"): + for l in open(aliases, "rb"): try: alias, actual = l.rsplit(b'=' in l and b'=' or None, 1) amap[alias.strip()] = actual.strip()