# HG changeset patch # User Matt Harbison # Date 1733422638 18000 # Node ID 10f98d358f6cdf346f61116166ecc63c3324b799 # Parent 4c70a70a9bcd6019f7c6310b476ec57d585e637d churn: stop using the `pycompat.open()` shim diff -r 4c70a70a9bcd -r 10f98d358f6c hgext/churn.py --- 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()