Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundlerepo.py @ 50951:d718eddf01d9
safehasattr: drop usage in favor of hasattr
The two functions should now be equivalent at least in their usage in core.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 31 Aug 2023 23:56:15 +0200 |
parents | 3a2df812e1c7 |
children | 3470a39fb66b |
line wrap: on
line diff
--- a/mercurial/bundlerepo.py Thu Dec 08 15:33:19 2022 +0100 +++ b/mercurial/bundlerepo.py Thu Aug 31 23:56:15 2023 +0200 @@ -245,7 +245,7 @@ class bundlephasecache(phases.phasecache): def __init__(self, *args, **kwargs): super(bundlephasecache, self).__init__(*args, **kwargs) - if util.safehasattr(self, 'opener'): + if hasattr(self, 'opener'): self.opener = vfsmod.readonlyvfs(self.opener) def write(self):