diff mercurial/changegroup.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 152d9c011bcd
children a0d88b021a98
line wrap: on
line diff
--- a/mercurial/changegroup.py	Thu Dec 08 15:33:19 2022 +0100
+++ b/mercurial/changegroup.py	Thu Aug 31 23:56:15 2023 +0200
@@ -1043,7 +1043,7 @@
                         return i
                 # We failed to resolve a parent for this node, so
                 # we crash the changegroup construction.
-                if util.safehasattr(store, 'target'):
+                if hasattr(store, 'target'):
                     target = store.display_id
                 else:
                     # some revlog not actually a revlog