Mercurial > public > mercurial-scm > hg-stable
diff mercurial/manifest.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 | 32837c7e2e4b |
children | 18c8c18993f0 |
line wrap: on
line diff
--- a/mercurial/manifest.py Thu Dec 08 15:33:19 2022 +0100 +++ b/mercurial/manifest.py Thu Aug 31 23:56:15 2023 +0200 @@ -1628,7 +1628,7 @@ def _setupmanifestcachehooks(self, repo): """Persist the manifestfulltextcache on lock release""" - if not util.safehasattr(repo, '_wlockref'): + if not hasattr(repo, '_wlockref'): return self._fulltextcache._opener = repo.wcachevfs